GRAPHICS: MACGUI: Made autohiding menu reentrable

This commit is contained in:
Eugene Sandulenko 2018-07-11 22:21:02 +02:00
parent ace8fcca82
commit 04dfa9b0a9
2 changed files with 5 additions and 2 deletions

View File

@ -549,9 +549,12 @@ bool MacMenu::mouseClick(int x, int y) {
}
bool MacMenu::mouseMove(int x, int y) {
if (_menuActivated)
if (_menuActivated) {
if (mouseClick(x, y))
return true;
} else if ((_wm->_mode & kWMModeAutohideMenu) && !_bbox.contains(x, y)) {
_isVisible = false;
}
return false;
}

View File

@ -66,7 +66,7 @@ public:
bool hasAllFocus() { return _menuActivated; }
bool isVisible() { return _isVisible; }
void setVisible(bool visible) { _isVisible = visible; }
void setVisible(bool visible) { _isVisible = visible; _contentIsDirty = true; }
Common::Rect _bbox;