{
for (k = 0; k < width; k++)
{
- pBuf[k] = (pLine[k] == __transColor) ? pBuf[k] : ((unsigned int*) pPalette)[pLine[k]];
+ pBuf[k] = (pLine[k] == __transColor) ? BGRA8888(0, 0, 0, 0) : ((unsigned int*) pPalette)[pLine[k]];
}
}
else
{
for (k = 0; k < width; k++)
{
- pBuf[k] = (pLine[k] == __transColor) ? pBuf[k] : ((unsigned int*) pPalette)[pLine[k]];
+ pBuf[k] = (pLine[k] == __transColor) ? BGRA8888(0, 0, 0, 0) : ((unsigned int*) pPalette)[pLine[k]];
}
}
else
//ext[i++] = extension ? *extension : 0;
if (extCode == GRAPHICS_EXT_FUNC_CODE)
{
- if (pExt[1] == 0x05)
+ if ((pExt[1] && 0x01) == true)
{
__transparent = true;
}