Fix ASTBlendPixel outputting empty pixels if the background pixel was empty, BUT if the foreground pixel had no alpha at all
This commit is contained in:
parent
9cd9d2e0d7
commit
288d7166bc
|
@ -244,7 +244,13 @@ UINT32 ASTBlendPixel(RGBA_t background, RGBA_t foreground, int style, UINT8 alph
|
||||||
|
|
||||||
// if the background pixel is empty, match software and don't blend anything
|
// if the background pixel is empty, match software and don't blend anything
|
||||||
if (!background.s.alpha)
|
if (!background.s.alpha)
|
||||||
|
{
|
||||||
|
// ...unless the foreground pixel ISN'T actually translucent.
|
||||||
|
if (alpha == 0xFF)
|
||||||
|
output.rgba = foreground.rgba;
|
||||||
|
else
|
||||||
output.rgba = 0;
|
output.rgba = 0;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
UINT8 beta = (0xFF - alpha);
|
UINT8 beta = (0xFF - alpha);
|
||||||
|
|
Loading…
Reference in New Issue