SCI: fix regression from video modes update

(src and dst coords need to get the same alignment)
This commit is contained in:
athrxx 2024-07-12 13:50:37 +02:00
parent 78ca42b633
commit eb66963f05

View File

@ -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) {