diff options
author | Eugene Sandulenko | 2019-10-02 00:32:22 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-10-02 00:33:34 +0200 |
commit | bd7aa647de713df4a77ac02662bda7e40e03006f (patch) | |
tree | f053948505e29bee77295a300a8f0be45d1f8da8 | |
parent | ff323092619e97157d3826a7f3c821f45b67635f (diff) | |
download | scummvm-rg350-bd7aa647de713df4a77ac02662bda7e40e03006f.tar.gz scummvm-rg350-bd7aa647de713df4a77ac02662bda7e40e03006f.tar.bz2 scummvm-rg350-bd7aa647de713df4a77ac02662bda7e40e03006f.zip |
GRAPHICS: MACGUI: Take submenu arrow indicator width into account
-rw-r--r-- | graphics/macgui/macmenu.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/macgui/macmenu.cpp b/graphics/macgui/macmenu.cpp index 09ccd3186a..d06aa57896 100644 --- a/graphics/macgui/macmenu.cpp +++ b/graphics/macgui/macmenu.cpp @@ -498,6 +498,9 @@ int MacMenu::calcSubMenuWidth(MacMenuSubMenu *submenu) { text += acceleratorText; } + if (item->submenu != nullptr) // If we're drawing triangle + text += " "; + int width = _font->getStringWidth(text); if (width > maxWidth) { maxWidth = width; |