Set pixel RGBA to nothing instead of the alpha only

This commit is contained in:
Jaime Passos 2020-02-29 19:36:50 -03:00
parent 4446b0d563
commit 94107a5320

View file

@ -242,10 +242,9 @@ UINT32 ASTBlendPixel(RGBA_t background, RGBA_t foreground, int style, UINT8 alph
fullalpha = 0xFF; fullalpha = 0xFF;
alpha = (UINT8)fullalpha; alpha = (UINT8)fullalpha;
// if the background pixel is empty, // if the background pixel is empty, match software and don't blend anything
// match software and don't blend anything
if (!background.s.alpha) if (!background.s.alpha)
output.s.alpha = 0; output.rgba = 0;
else else
{ {
UINT8 beta = (0xFF - alpha); UINT8 beta = (0xFF - alpha);