GRAPHICS: Fix transparency in ManagedSurface::blitFrom()

Added an explicit -1 argument for transColor in a call to transBlitFrom()
inside one of the overloads of blitFrom(). This fixes an issue where
calling blitFrom() with a Rect destination would result in the transparent
color being ignored.
This commit is contained in:
Kaloyan Chehlarski 2023-02-26 23:58:43 +02:00
parent 38643a418f
commit 3b27bce87b

View File

@ -265,7 +265,7 @@ void ManagedSurface::blitFrom(const ManagedSurface &src, const Common::Rect &src
void ManagedSurface::blitFrom(const ManagedSurface &src, const Common::Rect &srcRect,
const Common::Rect &destRect) {
if (src._transparentColorSet)
transBlitFrom(src, srcRect, destRect);
transBlitFrom(src, srcRect, destRect, -1);
else
blitFromInner(src._innerSurface, srcRect, destRect, src._paletteSet ? src._palette : nullptr);
}