From 626c988841649f75c9c3dda46330f4b6805292a6 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 1 Dec 2013 22:56:28 -0500 Subject: VOYEUR: Fix for correctly displaying lock screen --- engines/voyeur/graphics.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines') 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 &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 { -- cgit v1.2.3