mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-08 11:57:25 +00:00
SCI: fix regression from video modes update
(src and dst coords need to get the same alignment)
This commit is contained in:
parent
78ca42b633
commit
eb66963f05
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user