SCI: make pixelation transition work in upscaled hires mode

svn-id: r48668
This commit is contained in:
Martin Kiewitz 2010-04-16 11:44:10 +00:00
parent 1410f3c65a
commit 2cb0f7f155

View File

@ -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();
}
}