GRAPHICS: MACGUI: Render submenus recursively
This commit is contained in:
parent
bd7aa647de
commit
cf6e509cc9
2 changed files with 4 additions and 0 deletions
|
@ -684,6 +684,9 @@ void MacMenu::renderSubmenu(MacMenuSubMenu *menu) {
|
||||||
y += kMenuDropdownItemHeight;
|
y += kMenuDropdownItemHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (menu->subitems[_activeSubItem]->submenu != nullptr)
|
||||||
|
renderSubmenu(menu->subitems[_activeSubItem]->submenu);
|
||||||
|
|
||||||
_contentIsDirty = true;
|
_contentIsDirty = true;
|
||||||
//g_system->copyRectToScreen(_screen.getBasePtr(r->left, r->top), _screen.pitch, r->left, r->top, r->width() + 2, r->height() + 2);
|
//g_system->copyRectToScreen(_screen.getBasePtr(r->left, r->top), _screen.pitch, r->left, r->top, r->width() + 2, r->height() + 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,6 +112,7 @@ private:
|
||||||
bool _isVisible;
|
bool _isVisible;
|
||||||
|
|
||||||
int _activeItem;
|
int _activeItem;
|
||||||
|
Common::Array<int> _menustack;
|
||||||
int _activeSubItem;
|
int _activeSubItem;
|
||||||
|
|
||||||
void (*_ccallback)(int action, Common::String &text, void *data);
|
void (*_ccallback)(int action, Common::String &text, void *data);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue