Commit 0b7aec5f authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Make PAL8 pcx images opaque.

parent e22eff96
......@@ -71,7 +71,7 @@ static void pcx_palette(const uint8_t **src, uint32_t *dst, unsigned int pallen)
unsigned int i;
for (i=0; i<pallen; i++)
*dst++ = bytestream_get_be24(src);
*dst++ = 0xFF000000 | bytestream_get_be24(src);
if (pallen < 256)
memset(dst, 0, (256 - pallen) * sizeof(*dst));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment