mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 00:42:24 +00:00
VOYEUR: Fix backgrounds not showing for static rooms
This commit is contained in:
parent
7b03f9e877
commit
43440193f0
@ -1186,6 +1186,7 @@ void ThreadResource::doRoom() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
vm._eventsManager->_intPtr._hasPalette = true;
|
vm._eventsManager->_intPtr._hasPalette = true;
|
||||||
|
vm._screen->_vPort->_flags |= DISPFLAG_8;
|
||||||
vm._screen->flipPage();
|
vm._screen->flipPage();
|
||||||
vm._eventsManager->sWaitFlip();
|
vm._eventsManager->sWaitFlip();
|
||||||
} while (!vm.shouldQuit() && !vm._eventsManager->_mouseClicked);
|
} while (!vm.shouldQuit() && !vm._eventsManager->_mouseClicked);
|
||||||
|
@ -910,10 +910,13 @@ void Screen::flipPage() {
|
|||||||
bool flipFlag = false;
|
bool flipFlag = false;
|
||||||
|
|
||||||
for (uint idx = 0; idx < viewPorts.size(); ++idx) {
|
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 (viewPorts[idx]->_flags & DISPFLAG_20) {
|
||||||
if (_planeSelect == idx)
|
flipFlag = false;
|
||||||
sDisplayPic(viewPorts[idx]->_currentPic);
|
if ((viewPorts[idx]->_flags & DISPFLAG_8) && (viewPorts[idx]->_flags & DISPFLAG_1)) {
|
||||||
flipFlag = true;
|
if (_planeSelect == idx)
|
||||||
|
sDisplayPic(viewPorts[idx]->_currentPic);
|
||||||
|
flipFlag = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flipFlag) {
|
if (flipFlag) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user