diff options
-rw-r--r-- | graphics/macgui/macmenu.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/graphics/macgui/macmenu.cpp b/graphics/macgui/macmenu.cpp index 7ed4f3162f..873b2b92f0 100644 --- a/graphics/macgui/macmenu.cpp +++ b/graphics/macgui/macmenu.cpp @@ -240,7 +240,7 @@ MacMenu *MacMenu::createMenuFromPEexe(Common::PEResources &exe, MacWindowManager menu->addMenuItem(readUnicodeString(menuData)); } else { Common::U32String name = readUnicodeString(menuData); - menu->addSubMenuItem(menus.top(), name, action); + menu->addSubMenuItem(menus.top(), name, action, 0, 0, !(flags & kGrayed)); action++; } @@ -255,7 +255,7 @@ MacMenu *MacMenu::createMenuFromPEexe(Common::PEResources &exe, MacWindowManager menuData->readUint16LE(); // menu id Common::U32String name = readUnicodeString(menuData); if (depth > 0) { - menu->addSubMenuItem(menus.top(), name, action); + menu->addSubMenuItem(menus.top(), name, action, 0, 0, !(flags & kGrayed)); } if (!name.empty()) { action++; @@ -280,7 +280,8 @@ MacMenu *MacMenu::createMenuFromPEexe(Common::PEResources &exe, MacWindowManager } delete menuData; - menu->printMenu(); + if (gDebugLevel > 5) + menu->printMenu(); return menu; } |