mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Set pixel RGBA to nothing instead of the alpha only
This commit is contained in:
parent
d62090afae
commit
fa8e87ea16
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;
|
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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue