aboutsummaryrefslogtreecommitdiff
path: root/engines/wage
diff options
context:
space:
mode:
authorEugene Sandulenko2016-01-13 11:08:41 +0100
committerEugene Sandulenko2016-01-13 11:08:41 +0100
commita45c66b5a78f9aed00a494ab84ff164791ae7538 (patch)
treea0efa9b51678f1ec96298266737ccf730b22af8d /engines/wage
parent02e0498e368b7ebee18dd4415ea47da718b81500 (diff)
downloadscummvm-rg350-a45c66b5a78f9aed00a494ab84ff164791ae7538.tar.gz
scummvm-rg350-a45c66b5a78f9aed00a494ab84ff164791ae7538.tar.bz2
scummvm-rg350-a45c66b5a78f9aed00a494ab84ff164791ae7538.zip
WAGE: Retore background with menu hovering
Diffstat (limited to 'engines/wage')
-rw-r--r--engines/wage/menu.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/wage/menu.cpp b/engines/wage/menu.cpp
index 681fb624b7..7c680d7c68 100644
--- a/engines/wage/menu.cpp
+++ b/engines/wage/menu.cpp
@@ -288,13 +288,21 @@ void Menu::renderSubmenu(MenuItem *menu) {
bool Menu::mouseClick(int x, int y) {
if (_bbox.contains(x, y)) {
- _screenCopy.copyFrom(_gui->_screen);
+ if (!_menuActivated)
+ _screenCopy.copyFrom(_gui->_screen);
for (int i = 0; i < _items.size(); i++)
if (_items[i]->bbox.contains(x, y)) {
if (_activeItem == i)
return false;
+ if (_activeItem != -1) {
+ Common::Rect *r = &_items[_activeItem]->subbbox;
+
+ _gui->_screen.copyRectToSurface(_screenCopy, r->left, r->top, *r);
+ g_system->copyRectToScreen(_gui->_screen.getBasePtr(r->left, r->top), _gui->_screen.pitch, r->left, r->top, r->width() + 1, r->height() + 1);
+ }
+
_activeItem = i;
_activeSubItem = -1;
_menuActivated = true;