mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
Set pixel RGBA to nothing instead of the alpha only
This commit is contained in:
parent
4446b0d563
commit
94107a5320
1 changed files with 2 additions and 3 deletions
|
@ -242,10 +242,9 @@ UINT32 ASTBlendPixel(RGBA_t background, RGBA_t foreground, int style, UINT8 alph
|
|||
fullalpha = 0xFF;
|
||||
alpha = (UINT8)fullalpha;
|
||||
|
||||
// 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)
|
||||
output.s.alpha = 0;
|
||||
output.rgba = 0;
|
||||
else
|
||||
{
|
||||
UINT8 beta = (0xFF - alpha);
|
||||
|
|
Loading…
Reference in a new issue