mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 19:32:11 +00:00
GRAPHICS: MACGUI: Made autohiding menu reentrable
This commit is contained in:
parent
ace8fcca82
commit
04dfa9b0a9
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user