ignore TRANSPARENTPIXEL

This commit is contained in:
Jaime Passos 2019-09-23 19:20:59 -03:00
parent be6c8b08ea
commit 0346c28cc0

View file

@ -386,6 +386,7 @@ static inline void R_DrawBlendColumnInCache(column_t *patch, UINT8 *cache, texpa
if (count > 0) if (count > 0)
{ {
for (; dest < cache + position + count; source++, dest++) for (; dest < cache + position + count; source++, dest++)
if (*source != 0xFF)
*dest = ASTBlendPixel_8bpp(*dest, *source, originPatch->style, originPatch->alpha); *dest = ASTBlendPixel_8bpp(*dest, *source, originPatch->style, originPatch->alpha);
} }
@ -429,6 +430,7 @@ static inline void R_DrawBlendFlippedColumnInCache(column_t *patch, UINT8 *cache
if (count > 0) if (count > 0)
{ {
for (; dest < cache + position + count; --source, dest++) for (; dest < cache + position + count; --source, dest++)
if (*source != 0xFF)
*dest = ASTBlendPixel_8bpp(*dest, *source, originPatch->style, originPatch->alpha); *dest = ASTBlendPixel_8bpp(*dest, *source, originPatch->style, originPatch->alpha);
} }