diff options
author | Gregory Montoir | 2003-12-03 14:09:37 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-12-03 14:09:37 +0000 |
commit | 5bfbb9e954076cc9782121f4e8a490de9ce3019d (patch) | |
tree | 66881502fb291c22a6f9ca6b09b75f5340660b82 /queen/display.cpp | |
parent | 894360920bc5596570eedc039de0116513d26225 (diff) | |
download | scummvm-rg350-5bfbb9e954076cc9782121f4e8a490de9ce3019d.tar.gz scummvm-rg350-5bfbb9e954076cc9782121f4e8a490de9ce3019d.tar.bz2 scummvm-rg350-5bfbb9e954076cc9782121f4e8a490de9ce3019d.zip |
remaining stuff for Azura/Floda
svn-id: r11487
Diffstat (limited to 'queen/display.cpp')
-rw-r--r-- | queen/display.cpp | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/queen/display.cpp b/queen/display.cpp index b231c25a5a..d4dbddb71b 100644 --- a/queen/display.cpp +++ b/queen/display.cpp @@ -291,7 +291,7 @@ void Display::palFadeOut(int start, int end, uint16 roomNum) { int n = end - start + 1; if (!(roomNum < 90 || (roomNum > 94 && roomNum < 114))) { memset(_pal.screen + start * 3, 0, n * 3); - palSet(_pal.screen, start, end); + palSet(_pal.screen, start, end, true); } else { uint8 tempPal[256 * 3]; @@ -617,6 +617,34 @@ void Display::palCustomFlash() { } +void Display::palCustomLightsOff(uint16 roomNum) { + + int end = 223; + int start = (roomNum == ROOM_FLODA_FRONTDESK) ? 32 : 16; + int n = end - start + 1; + + memset(_pal.screen + start * 3, 0, n * 3); + palSet(_pal.screen, start, end, true); + + _pal.scrollable = false; +} + + +void Display::palCustomLightsOn(uint16 roomNum) { + + int end = 223; + int start = (roomNum == ROOM_FLODA_FRONTDESK) ? 32 : 0; + int n = end - start + 1; + + memcpy(_pal.screen + start * 3, _pal.room + start * 3, n * 3); + palSet(_pal.screen, start, end, true); + + _pal.dirtyMin = 0; + _pal.dirtyMax = 223; + _pal.scrollable = true; +} + + void Display::screenMode(int comPanel, bool inCutaway) { debug(0, "Display::screenMode(%d, %d)", comPanel, inCutaway); |