mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 09:49:14 +00:00
SCI: fix video display regression
This commit is contained in:
parent
4b848f5e66
commit
9d833af3d0
@ -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);
|
||||
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user