pixel alpha mistake

This commit is contained in:
Jaime Passos 2019-09-23 18:27:43 -03:00
parent 9c7b3f1d80
commit 61aa84d15a
1 changed files with 2 additions and 1 deletions

View File

@ -262,7 +262,8 @@ UINT32 ASTBlendPixel(RGBA_t background, RGBA_t foreground, int style, UINT8 alph
// if there's no pixel in here
if (!background.rgba)
output.s.alpha = foreground.s.alpha;
output.s.alpha = 0xFF;
else
output.s.alpha = 0xFF;
return output.rgba;
}
#define clamp(c) max(min(c, 0xFF), 0x00);