diff options
author | Eugene Sandulenko | 2016-01-12 19:40:27 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-01-12 19:40:27 +0100 |
commit | 91ef3e6dcde78456bec624a82f28119c122aa08b (patch) | |
tree | f45020b723857bda145d7c6d1106ae37d846c503 | |
parent | 5a9acaa1624864006bac516e5460322665ad68b8 (diff) | |
download | scummvm-rg350-91ef3e6dcde78456bec624a82f28119c122aa08b.tar.gz scummvm-rg350-91ef3e6dcde78456bec624a82f28119c122aa08b.tar.bz2 scummvm-rg350-91ef3e6dcde78456bec624a82f28119c122aa08b.zip |
WAGE: Blit submenu to screen
-rw-r--r-- | engines/wage/menu.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/wage/menu.cpp b/engines/wage/menu.cpp index 09846cf662..2ed41bc510 100644 --- a/engines/wage/menu.cpp +++ b/engines/wage/menu.cpp @@ -264,8 +264,12 @@ void Menu::render() { } void Menu::renderSubmenu(MenuItem *menu) { - Design::drawFilledRect(&_gui->_screen, menu->subbbox, kColorWhite, _patterns, 1); - Design::drawRect(&_gui->_screen, menu->subbbox, 1, kColorBlack, _patterns, 1); + Common::Rect *r = &menu->subbbox; + + Design::drawFilledRect(&_gui->_screen, *r, kColorWhite, _patterns, 1); + Design::drawRect(&_gui->_screen, *r, 1, kColorBlack, _patterns, 1); + + g_system->copyRectToScreen(_gui->_screen.getBasePtr(r->left, r->top), _gui->_screen.pitch, r->left, r->top, r->width() + 1, r->height() + 1); } bool Menu::mouseClick(int x, int y) { |