diff options
author | Martin Kiewitz | 2010-04-16 11:44:10 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-04-16 11:44:10 +0000 |
commit | 2cb0f7f155163b1ac414295d626fec757cc63e7c (patch) | |
tree | b6ef3372e6537af367e244e32c4da741986b0c2b /engines/sci | |
parent | 1410f3c65a4cea2121b33f8eef94503ddbc5ae2b (diff) | |
download | scummvm-rg350-2cb0f7f155163b1ac414295d626fec757cc63e7c.tar.gz scummvm-rg350-2cb0f7f155163b1ac414295d626fec757cc63e7c.tar.bz2 scummvm-rg350-2cb0f7f155163b1ac414295d626fec757cc63e7c.zip |
SCI: make pixelation transition work in upscaled hires mode
svn-id: r48668
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/graphics/transitions.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/sci/graphics/transitions.cpp b/engines/sci/graphics/transitions.cpp index 787e39cef0..8acbebcb30 100644 --- a/engines/sci/graphics/transitions.cpp +++ b/engines/sci/graphics/transitions.cpp @@ -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(); } } |