aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2013-12-01 22:56:28 -0500
committerPaul Gilbert2013-12-01 22:56:28 -0500
commit626c988841649f75c9c3dda46330f4b6805292a6 (patch)
tree70389ac6782885c67e679a67bff112ebfbea665f
parentede418b67a0f14e4f17a2b03f5362741badd5532 (diff)
downloadscummvm-rg350-626c988841649f75c9c3dda46330f4b6805292a6.tar.gz
scummvm-rg350-626c988841649f75c9c3dda46330f4b6805292a6.tar.bz2
scummvm-rg350-626c988841649f75c9c3dda46330f4b6805292a6.zip
VOYEUR: Fix for correctly displaying lock screen
-rw-r--r--engines/voyeur/graphics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp
index 3a37eb9fb0..e220bbf652 100644
--- a/engines/voyeur/graphics.cpp
+++ b/engines/voyeur/graphics.cpp
@@ -584,14 +584,14 @@ void GraphicsManager::flipPage() {
void GraphicsManager::restoreBack(Common::Array<Common::Rect> &rectList, int rectListCount,
PictureResource *srcPic, PictureResource *destPic) {
- bool saveBack = _saveBack;
- _saveBack = false;
-
// WORKAROUND: Since _backgroundPage can point to a resource freed at the end of display methods,
// I'm now explicitly resetting it to null in screenReset(), so at this point it can be null
if (!srcPic)
return;
+ bool saveBack = _saveBack;
+ _saveBack = false;
+
if (rectListCount == -1) {
sDrawPic(srcPic, destPic, Common::Point());
} else {