mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
GRAPHICS: Fix blending with default transColor on 32-bpp surfaces
This commit is contained in:
parent
1e9b46e367
commit
c9696cb36c
@ -526,7 +526,7 @@ void transBlit(const Surface &src, const Common::Rect &srcRect, Surface &dest, c
|
||||
|
||||
// If we're dealing with a 32-bit source surface, we need to split up the RGB,
|
||||
// since we'll want to find matching RGB pixels irrespective of the alpha
|
||||
bool isTrans32 = src.format.bytesPerPixel == 4 && transColor != (uint32)-1;
|
||||
bool isTrans32 = src.format.bytesPerPixel == 4 && transColor != (uint32)-1 && transColor > 0;
|
||||
if (isTrans32) {
|
||||
src.format.colorToRGB(transColor, rt1, gt1, bt1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user