mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
AGS: Properly pre-flip surface when blitting
Fixed an error in the arguments when pre-flipping a blit prior to blitting.
This commit is contained in:
parent
6208f8807e
commit
6c21737f50
@ -191,7 +191,7 @@ void BITMAP::draw(const BITMAP *srcBitmap, const Common::Rect &srcRect,
|
||||
}
|
||||
BITMAP temp(&flipped);
|
||||
|
||||
auto args = DrawInnerArgs(this, (horizFlip || vertFlip) ? &temp : srcBitmap, srcRect, Common::Rect(dstX, dstY, dstX+1, dstY+1), skipTrans, srcAlpha, false, false, tintRed, tintGreen, tintBlue, false);
|
||||
auto args = DrawInnerArgs(this, (horizFlip || vertFlip) ? &temp : srcBitmap, (horizFlip || vertFlip) ? flipped.getBounds() : srcRect, Common::Rect(dstX, dstY, dstX + 1, dstY + 1), skipTrans, srcAlpha, false, false, tintRed, tintGreen, tintBlue, false);
|
||||
if (!args.shouldDraw) return;
|
||||
if (!args.sameFormat && args.src.format.bytesPerPixel == 1) {
|
||||
if (format.bytesPerPixel == 4)
|
||||
|
Loading…
Reference in New Issue
Block a user