diff options
author | Eugene Sandulenko | 2016-04-24 13:51:17 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-04-24 13:51:17 +0200 |
commit | 357c64cd514c16109377aaaec19a76886809a515 (patch) | |
tree | 5f8a2a62d99f6769566e717c9b11004d36d39003 /engines/wage/gui.cpp | |
parent | 9877abe93697c016d18f7fee1c252577e6fd47df (diff) | |
download | scummvm-rg350-357c64cd514c16109377aaaec19a76886809a515.tar.gz scummvm-rg350-357c64cd514c16109377aaaec19a76886809a515.tar.bz2 scummvm-rg350-357c64cd514c16109377aaaec19a76886809a515.zip |
WAGE: Move desktop drawing to WM
Diffstat (limited to 'engines/wage/gui.cpp')
-rw-r--r-- | engines/wage/gui.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp index 09eeb0f3ee..50dadc881f 100644 --- a/engines/wage/gui.cpp +++ b/engines/wage/gui.cpp @@ -73,7 +73,6 @@ static const byte palette[] = { static byte fillPatterns[][8] = { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, // kPatternSolid { 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55 }, // kPatternStripes - { 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55 }, // kPatternCheckers { 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa } // kPatternCheckers2 }; @@ -231,17 +230,11 @@ const Graphics::Font *Gui::getTitleFont() { return getFont("Chicago-12", Graphics::FontManager::kBigGUIFont); } -void Gui::drawDesktop() { - // Draw desktop - Common::Rect r(0, 0, _screen.w - 1, _screen.h - 1); - Design::drawFilledRoundRect(&_screen, r, kDesktopArc, kColorBlack, _patterns, kPatternCheckers); - g_system->copyRectToScreen(_screen.getPixels(), _screen.pitch, 0, 0, _screen.w, _screen.h); -} - void Gui::draw() { if (_engine->_isGameOver) { if (_menuDirty) { - drawDesktop(); + _wm.setFullRefresh(true); + _wm.draw(); _menu->render(); } @@ -260,13 +253,8 @@ void Gui::draw() { _sceneWindow->setDimensions(*_scene->_designBounds); _sceneWindow->setTitle(_scene->_name); - _sceneWindow->setDirty(true); _consoleWindow->setDimensions(*_scene->_textBounds); - _consoleWindow->setDirty(true); - } - if (_sceneDirty) { - drawDesktop(); _wm.setFullRefresh(true); } @@ -370,7 +358,7 @@ bool Gui::processConsoleEvents(WindowClick click, Common::Event &event) { undrawCursor(); _cursorY -= (_scrollPos - oldScrollPos); _consoleDirty = true; - _consoleFullRedraw = true; + _consoleFullRedraw = true; break; case kBorderScrollDown: _scrollPos = MIN<int>((_lines.size() - 2) * _consoleLineHeight, _scrollPos + _consoleLineHeight); |