[Scummvm-git-logs] scummvm master -> eb66963f0555af464b68a384ae3cbadb3e9cf2fe
athrxx
noreply at scummvm.org
Fri Jul 12 11:53:17 UTC 2024
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:
eb66963f05 SCI: fix regression from video modes update
Commit: eb66963f0555af464b68a384ae3cbadb3e9cf2fe
https://github.com/scummvm/scummvm/commit/eb66963f0555af464b68a384ae3cbadb3e9cf2fe
Author: athrxx (athrxx at scummvm.org)
Date: 2024-07-12T13:51:31+02:00
Commit Message:
SCI: fix regression from video modes update
(src and dst coords need to get the same alignment)
Changed paths:
engines/sci/graphics/screen.cpp
diff --git a/engines/sci/graphics/screen.cpp b/engines/sci/graphics/screen.cpp
index 4a25fe6414c..3683cd49f23 100644
--- a/engines/sci/graphics/screen.cpp
+++ b/engines/sci/graphics/screen.cpp
@@ -956,7 +956,7 @@ void GfxScreen::bakCopyRectToScreen(const Common::Rect &rect, int16 x, int16 y)
assert(_backupScreen);
uint8 align = _gfxDrv->hAlignment();
Common::Rect r(rect.left & ~align, rect.top, (rect.right + align) & ~align, rect.bottom);
- _gfxDrv->copyRectToScreen(_backupScreen + r.left + r.top * _displayWidth, _displayWidth, x, y, r.width(), r.height(), _paletteModsEnabled ? _paletteMods : nullptr, _paletteMapScreen);
+ _gfxDrv->copyRectToScreen(_backupScreen + r.left + r.top * _displayWidth, _displayWidth, x & ~align, y, r.width(), r.height(), _paletteModsEnabled ? _paletteMods : nullptr, _paletteMapScreen);
}
void GfxScreen::setPaletteMods(const PaletteMod *mods, unsigned int count) {
More information about the Scummvm-git-logs
mailing list