aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui
diff options
context:
space:
mode:
authorEugene Sandulenko2019-10-04 00:33:32 +0200
committerEugene Sandulenko2019-10-04 00:33:32 +0200
commit087c6c80d0eff9b65726ad5239febc25329ae149 (patch)
treeabd97440390e8dcea6251146a34feaf8536300e0 /graphics/macgui
parent3f7112d5c9a97aead70616ab5ecde5f0efe41968 (diff)
downloadscummvm-rg350-087c6c80d0eff9b65726ad5239febc25329ae149.tar.gz
scummvm-rg350-087c6c80d0eff9b65726ad5239febc25329ae149.tar.bz2
scummvm-rg350-087c6c80d0eff9b65726ad5239febc25329ae149.zip
GRAPHICS: MACGUI: Support grayed out menu items in PE exe
Diffstat (limited to 'graphics/macgui')
-rw-r--r--graphics/macgui/macmenu.cpp7
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;
}