Fix mistake
This commit is contained in:
parent
c64e231b2b
commit
423494381e
|
@ -322,12 +322,12 @@ UINT32 ASTBlendTexturePixel(RGBA_t background, RGBA_t foreground, int style, UIN
|
||||||
{
|
{
|
||||||
// Is the patch way too translucent? Don't blend then.
|
// Is the patch way too translucent? Don't blend then.
|
||||||
if (alpha < ASTTextureBlendingThreshold[0])
|
if (alpha < ASTTextureBlendingThreshold[0])
|
||||||
return background;
|
return background.rgba;
|
||||||
|
|
||||||
return foreground;
|
return ASTBlendPixel(background, foreground, style, alpha);
|
||||||
}
|
}
|
||||||
else // just copy the pixel
|
else // just copy the pixel
|
||||||
return foreground;
|
return foreground.rgba;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return ASTBlendPixel(background, foreground, style, alpha);
|
return ASTBlendPixel(background, foreground, style, alpha);
|
||||||
|
|
Loading…
Reference in New Issue