aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/macgui')
-rw-r--r--graphics/macgui/macmenu.cpp9
-rw-r--r--graphics/macgui/macmenu.h2
2 files changed, 3 insertions, 8 deletions
diff --git a/graphics/macgui/macmenu.cpp b/graphics/macgui/macmenu.cpp
index dcf2e20470..cecdcabcea 100644
--- a/graphics/macgui/macmenu.cpp
+++ b/graphics/macgui/macmenu.cpp
@@ -56,11 +56,6 @@ enum {
kFontStyleExtended = 64
};
-enum {
- kMenuActionCommand
-};
-
-
struct MacMenuSubItem {
Common::String text;
int action;
@@ -216,7 +211,7 @@ void MacMenu::clearSubMenu(int id) {
menu->subitems.clear();
}
-void MacMenu::createSubMenuFromString(int id, const char *str) {
+void MacMenu::createSubMenuFromString(int id, const char *str, int commandId) {
clearSubMenu(id);
MacMenuItem *menu = _items[id];
@@ -278,7 +273,7 @@ void MacMenu::createSubMenuFromString(int id, const char *str) {
}
}
- menu->subitems.push_back(new MacMenuSubItem(item.c_str(), kMenuActionCommand, style, shortcut, enabled));
+ menu->subitems.push_back(new MacMenuSubItem(item.c_str(), commandId, style, shortcut, enabled));
}
item.clear();
diff --git a/graphics/macgui/macmenu.h b/graphics/macgui/macmenu.h
index a25b65afbc..8b3e8ff258 100644
--- a/graphics/macgui/macmenu.h
+++ b/graphics/macgui/macmenu.h
@@ -52,7 +52,7 @@ public:
int addMenuItem(const char *name);
void addMenuSubItem(int id, const char *text, int action, int style = 0, char shortcut = 0, bool enabled = true);
- void createSubMenuFromString(int id, const char *string);
+ void createSubMenuFromString(int id, const char *string, int commandId);
void clearSubMenu(int id);
bool draw(ManagedSurface *g, bool forceRedraw = false);