From 43440193f02078c4b4b014ded366d06655a53ae5 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 10 Jun 2017 18:21:04 -0400 Subject: VOYEUR: Fix backgrounds not showing for static rooms --- engines/voyeur/screen.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'engines/voyeur/screen.cpp') diff --git a/engines/voyeur/screen.cpp b/engines/voyeur/screen.cpp index ca9248398f..4d34078439 100644 --- a/engines/voyeur/screen.cpp +++ b/engines/voyeur/screen.cpp @@ -910,10 +910,13 @@ void Screen::flipPage() { bool flipFlag = false; for (uint idx = 0; idx < viewPorts.size(); ++idx) { - if ((viewPorts[idx]->_flags & (DISPFLAG_20 | DISPFLAG_8 | DISPFLAG_1)) == (DISPFLAG_20 | DISPFLAG_8 | DISPFLAG_1)) { - if (_planeSelect == idx) - sDisplayPic(viewPorts[idx]->_currentPic); - flipFlag = true; + if (viewPorts[idx]->_flags & DISPFLAG_20) { + flipFlag = false; + if ((viewPorts[idx]->_flags & DISPFLAG_8) && (viewPorts[idx]->_flags & DISPFLAG_1)) { + if (_planeSelect == idx) + sDisplayPic(viewPorts[idx]->_currentPic); + flipFlag = true; + } } if (flipFlag) { -- cgit v1.2.3