aboutsummaryrefslogtreecommitdiff
path: root/queen/display.cpp
diff options
context:
space:
mode:
authorDavid Eriksson2003-11-08 11:32:32 +0000
committerDavid Eriksson2003-11-08 11:32:32 +0000
commitf243b50215c157a40d4ec3aada91efdb4762b73a (patch)
treeca4e6f19deb591c5a15ca0bcf17a99164f0c3c18 /queen/display.cpp
parent6e2b51233f0b0497d7f462c170e939d0a31766b2 (diff)
downloadscummvm-rg350-f243b50215c157a40d4ec3aada91efdb4762b73a.tar.gz
scummvm-rg350-f243b50215c157a40d4ec3aada91efdb4762b73a.tar.bz2
scummvm-rg350-f243b50215c157a40d4ec3aada91efdb4762b73a.zip
Start/stop scenes - fixes missing panel.
svn-id: r11205
Diffstat (limited to 'queen/display.cpp')
-rw-r--r--queen/display.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/queen/display.cpp b/queen/display.cpp
index a1d05b267d..c41d4c9bcb 100644
--- a/queen/display.cpp
+++ b/queen/display.cpp
@@ -313,11 +313,12 @@ void Display::palFadeOut(int start, int end, uint16 roomNum) {
void Display::palFadePanel() {
- int i;
+ int i, j;
uint8 tempPal[256 * 3];
- for (i = 224 * 3; i <= 255 * 3; ++i) {
- tempPal[i] = _pals.screen[i] * 2 / 3;
- }
+ for (i = 224; i < 256; ++i)
+ for (j = 0; j < 3; j++)
+ tempPal[i * 3 + j] = _pals.screen[i * 3 + 1] * 2 / 3;
+
palSet(tempPal, 224, 255, true);
}