mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 12:55:24 +00:00
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:
parent
38643a418f
commit
3b27bce87b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user