From 2cb0f7f155163b1ac414295d626fec757cc63e7c Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 16 Apr 2010 11:44:10 +0000 Subject: SCI: make pixelation transition work in upscaled hires mode svn-id: r48668 --- engines/sci/graphics/transitions.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'engines/sci/graphics/transitions.cpp') 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(); } } -- cgit v1.2.3