VOYEUR: Fix backgrounds not showing for static rooms

This commit is contained in:
Paul Gilbert 2017-06-10 18:21:04 -04:00
parent 7b03f9e877
commit 43440193f0
2 changed files with 8 additions and 4 deletions

View File

@ -1186,6 +1186,7 @@ void ThreadResource::doRoom() {
}
vm._eventsManager->_intPtr._hasPalette = true;
vm._screen->_vPort->_flags |= DISPFLAG_8;
vm._screen->flipPage();
vm._eventsManager->sWaitFlip();
} while (!vm.shouldQuit() && !vm._eventsManager->_mouseClicked);

View File

@ -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) {