Make PAL8 pcx images opaque.

This commit is contained in:
Carl Eugen Hoyos 2011-11-11 18:38:16 +01:00
parent e22eff964f
commit 0b7aec5fa4
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}