aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2010-04-16 11:44:10 +0000
committerMartin Kiewitz2010-04-16 11:44:10 +0000
commit2cb0f7f155163b1ac414295d626fec757cc63e7c (patch)
treeb6ef3372e6537af367e244e32c4da741986b0c2b
parent1410f3c65a4cea2121b33f8eef94503ddbc5ae2b (diff)
downloadscummvm-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
-rw-r--r--engines/sci/graphics/transitions.cpp9
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();
}
}