SCI: fix video display regression

This commit is contained in:
athrxx 2024-07-13 00:32:07 +02:00
parent 4b848f5e66
commit 9d833af3d0
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ void updateBitmapBuffer(byte *dst, int dstPitch, const byte *src, int srcPitch,
void GfxDefaultDriver::copyRectToScreen(const byte *src, int srcX, int srcY, int pitch, int destX, int destY, int w, int h, const PaletteMod *palMods, const byte *palModMapping) {
GFXDRV_ASSERT_READY;
src += (srcY * pitch + srcX);
src += (srcY * pitch + srcX * _srcPixelSize);
if (src != _currentBitmap)
updateBitmapBuffer(_currentBitmap, _screenW * _srcPixelSize, src, pitch, destX * _srcPixelSize, destY, w * _srcPixelSize, h);

View File

@ -294,7 +294,7 @@ void GfxScreen::copyToScreen() {
}
void GfxScreen::copyVideoFrameToScreen(const byte *buffer, int pitch, const Common::Rect &rect) {
_gfxDrv->copyRectToScreen(buffer, rect.left, rect.top, pitch, rect.left, rect.top, rect.width(), rect.height(), _paletteModsEnabled ? _paletteMods : nullptr, _paletteMapScreen);
_gfxDrv->copyRectToScreen(buffer, 0, 0, pitch, rect.left, rect.top, rect.width(), rect.height(), _paletteModsEnabled ? _paletteMods : nullptr, _paletteMapScreen);
}
void GfxScreen::kernelSyncWithFramebuffer() {