diff options
author | Eugene Sandulenko | 2019-10-04 16:49:00 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-10-04 16:49:00 +0200 |
commit | 4f3d41c77d345ed47ad0b7147c6f59e33288110e (patch) | |
tree | 9e9cf1caa75e2c181d77e9d364f5cee92f33a1b2 /graphics/macgui | |
parent | 02ff887ae08cbf2d1e09ad17854ec8c4290ecf4c (diff) | |
download | scummvm-rg350-4f3d41c77d345ed47ad0b7147c6f59e33288110e.tar.gz scummvm-rg350-4f3d41c77d345ed47ad0b7147c6f59e33288110e.tar.bz2 scummvm-rg350-4f3d41c77d345ed47ad0b7147c6f59e33288110e.zip |
GRAPHICS: Properly process && in PE exe menus
Diffstat (limited to 'graphics/macgui')
-rw-r--r-- | graphics/macgui/macmenu.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/graphics/macgui/macmenu.cpp b/graphics/macgui/macmenu.cpp index 59bc9499ad..ea8f5c1e8d 100644 --- a/graphics/macgui/macmenu.cpp +++ b/graphics/macgui/macmenu.cpp @@ -371,8 +371,12 @@ int MacMenu::addMenuItem(MacMenuSubMenu *submenu, const Common::U32String &text, for (uint i = 0; i < text.size(); i++) if (text[i] == amp[0]) { - shortcut = text[i + 1] & 0xff; - shortcutPos = i; + if ((text[i + 1] & 0xff) != '&') { + shortcut = text[i + 1] & 0xff; + shortcutPos = i; + } else { + res += text[i]; + } } else { res += text[i]; } |