aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui
diff options
context:
space:
mode:
authorEugene Sandulenko2019-10-03 10:03:02 +0200
committerEugene Sandulenko2019-10-03 10:03:02 +0200
commit890adf6e3ae40d2b9321fe0eba3907c74ace9fd9 (patch)
tree9ab1b2a061bbf438d8b7aafaf7878a4204d2f7f4 /graphics/macgui
parentb2b5f3c3f8f6810fdd42f268ed05f1bccd74d671 (diff)
downloadscummvm-rg350-890adf6e3ae40d2b9321fe0eba3907c74ace9fd9.tar.gz
scummvm-rg350-890adf6e3ae40d2b9321fe0eba3907c74ace9fd9.tar.bz2
scummvm-rg350-890adf6e3ae40d2b9321fe0eba3907c74ace9fd9.zip
GRAPHICS: MACGUI: Fix menu re-entrance
Diffstat (limited to 'graphics/macgui')
-rw-r--r--graphics/macgui/macmenu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics/macgui/macmenu.cpp b/graphics/macgui/macmenu.cpp
index 806522f251..114f56ab03 100644
--- a/graphics/macgui/macmenu.cpp
+++ b/graphics/macgui/macmenu.cpp
@@ -821,6 +821,7 @@ bool MacMenu::mouseClick(int x, int y) {
_activeSubItem = -1;
if (_items[_activeItem]->submenu != nullptr) {
_menustack.push_back(_items[_activeItem]->submenu);
+ _items[_activeItem]->submenu->highlight = -1;
}
_menuActivated = true;
@@ -933,6 +934,7 @@ bool MacMenu::mouseRelease(int x, int y) {
_activeItem = -1;
_activeSubItem = -1;
+ _menustack.clear();
_wm->setFullRefresh(true);