diff options
author | Gregory Montoir | 2003-11-14 14:35:52 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-11-14 14:35:52 +0000 |
commit | 730fd27a19315234166dfb1dec324d433b1ffef3 (patch) | |
tree | b05637affb8a6c822dd3d246284433b7ae655e33 /queen/display.cpp | |
parent | 183b82262954055c9ace945cb055965261a9793d (diff) | |
download | scummvm-rg350-730fd27a19315234166dfb1dec324d433b1ffef3.tar.gz scummvm-rg350-730fd27a19315234166dfb1dec324d433b1ffef3.tar.bz2 scummvm-rg350-730fd27a19315234166dfb1dec324d433b1ffef3.zip |
rewitten fullscreen/panel switching code
svn-id: r11296
Diffstat (limited to 'queen/display.cpp')
-rw-r--r-- | queen/display.cpp | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/queen/display.cpp b/queen/display.cpp index 045e40fc9e..c5fe3a9525 100644 --- a/queen/display.cpp +++ b/queen/display.cpp @@ -621,37 +621,29 @@ void Display::palCustomFlash() { void Display::screenMode(int comPanel, bool inCutaway) { + debug(0, "Display::screenMode(%d, %d)", comPanel, inCutaway); + + // FIXME: this is temporary, just to see if my theory is right + if (comPanel == 2 && !inCutaway) { + warning("Display::screenMode() - (comPanel == 2 && !inCutaway)"); + } + if (comPanel == 2 && inCutaway) { - if (_bdHeight == GAME_SCREEN_HEIGHT) { - _fullscreen = true; - _panel = false; - } - else { - _fullscreen = false; - _panel = true; - } + _fullscreen = (_bdHeight == GAME_SCREEN_HEIGHT); } - else { - _fullscreen = 0; - if (comPanel == 1) { - _panel = true; - } + else if (comPanel == 1) { + _fullscreen = false; } } void Display::prepareUpdate() { - if (_panel) { + if (!_fullscreen) { // draw the panel memcpy(_buffers[RB_SCREEN] + _bufPitch[RB_SCREEN] * ROOM_ZONE_HEIGHT, _buffers[RB_PANEL], PANEL_W * PANEL_H); } - else if (!_fullscreen) { - // clear the panel - memset(_buffers[RB_SCREEN] + _bufPitch[RB_SCREEN] * ROOM_ZONE_HEIGHT, - 0, PANEL_W * PANEL_H); - } // draw the backdrop bitmap int i; |