aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-01-12 19:40:27 +0100
committerEugene Sandulenko2016-01-12 19:40:27 +0100
commit91ef3e6dcde78456bec624a82f28119c122aa08b (patch)
treef45020b723857bda145d7c6d1106ae37d846c503
parent5a9acaa1624864006bac516e5460322665ad68b8 (diff)
downloadscummvm-rg350-91ef3e6dcde78456bec624a82f28119c122aa08b.tar.gz
scummvm-rg350-91ef3e6dcde78456bec624a82f28119c122aa08b.tar.bz2
scummvm-rg350-91ef3e6dcde78456bec624a82f28119c122aa08b.zip
WAGE: Blit submenu to screen
-rw-r--r--engines/wage/menu.cpp8
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) {