mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 09:18:38 +00:00
SCI: make pixelation transition work in upscaled hires mode
svn-id: r48668
This commit is contained in:
parent
1410f3c65a
commit
2cb0f7f155
@ -265,7 +265,14 @@ void GfxTransitions::copyRectToScreen(const Common::Rect rect, bool blackoutFlag
|
||||
_screen->copyRectToScreen(rect);
|
||||
} else {
|
||||
Graphics::Surface *surface = g_system->lockScreen();
|
||||
surface->fillRect(rect, 0);
|
||||
if (!_screen->getUpscaledHires()) {
|
||||
surface->fillRect(rect, 0);
|
||||
} else {
|
||||
Common::Rect upscaledRect = rect;
|
||||
upscaledRect.top *= 2; upscaledRect.bottom *= 2;
|
||||
upscaledRect.left *= 2; upscaledRect.right *= 2;
|
||||
surface->fillRect(upscaledRect, 0);
|
||||
}
|
||||
g_system->unlockScreen();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user