[Scummvm-git-logs] scummvm master -> 6c21737f50d39d1b30a752d86e9776adb6494288
fracturehill
noreply at scummvm.org
Wed Nov 22 23:07:56 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
6c21737f50 AGS: Properly pre-flip surface when blitting
Commit: 6c21737f50d39d1b30a752d86e9776adb6494288
https://github.com/scummvm/scummvm/commit/6c21737f50d39d1b30a752d86e9776adb6494288
Author: Kaloyan Chehlarski (strahy at outlook.com)
Date: 2023-11-23T01:07:15+02:00
Commit Message:
AGS: Properly pre-flip surface when blitting
Fixed an error in the arguments when pre-flipping a
blit prior to blitting.
Changed paths:
engines/ags/lib/allegro/surface.cpp
diff --git a/engines/ags/lib/allegro/surface.cpp b/engines/ags/lib/allegro/surface.cpp
index 2d0748ed942..66df5d13b52 100644
--- a/engines/ags/lib/allegro/surface.cpp
+++ b/engines/ags/lib/allegro/surface.cpp
@@ -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)
More information about the Scummvm-git-logs
mailing list