diff options
author | Eugene Sandulenko | 2019-10-02 13:38:28 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-10-02 13:38:28 +0200 |
commit | 5b0e4650016791ad95dd888548f27be22c843e8b (patch) | |
tree | 2adbdd93948bc5fc88ba495cd598ed8d244868f1 /graphics/macgui | |
parent | 6dee0833520e06a8e97a85c3c76122d0af38d89f (diff) | |
download | scummvm-rg350-5b0e4650016791ad95dd888548f27be22c843e8b.tar.gz scummvm-rg350-5b0e4650016791ad95dd888548f27be22c843e8b.tar.bz2 scummvm-rg350-5b0e4650016791ad95dd888548f27be22c843e8b.zip |
GRAPHICS: MACGUI: Fix debug menu printing
Diffstat (limited to 'graphics/macgui')
-rw-r--r-- | graphics/macgui/macmenu.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/graphics/macgui/macmenu.cpp b/graphics/macgui/macmenu.cpp index 81208c0c35..839404de81 100644 --- a/graphics/macgui/macmenu.cpp +++ b/graphics/macgui/macmenu.cpp @@ -285,16 +285,17 @@ MacMenu *MacMenu::createMenuFromPEexe(Common::PEResources &exe, MacWindowManager void MacMenu::printMenu(int level, MacMenuSubMenu *submenu) { if (!level) { for (int i = 0; i < _items.size(); i++) { - debug("%s", _items[i]->unicode ? convertFromU32String(_items[i]->unicodeName).c_str() : _items[i]->name.c_str()); + debug("0. %s", _items[i]->unicode ? convertFromU32String(_items[i]->unicodeName).c_str() : _items[i]->name.c_str()); if (_items[i]->submenu != nullptr) printMenu(level + 1, _items[i]->submenu); } } else { - for (int j = 0; j < level; j++) - debugN(" "); - for (int i = 0; i < submenu->subitems.size(); i++) { + debugN("%d. ", level); + for (int j = 0; j < level; j++) + debugN(" "); + debug("%s", submenu->subitems[i]->unicode ? convertFromU32String(submenu->subitems[i]->unicodeText).c_str() : submenu->subitems[i]->text.c_str()); if (submenu->subitems[i]->submenu != nullptr) |