aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui
diff options
context:
space:
mode:
authorEugene Sandulenko2019-10-02 00:32:22 +0200
committerEugene Sandulenko2019-10-02 00:33:34 +0200
commitbd7aa647de713df4a77ac02662bda7e40e03006f (patch)
treef053948505e29bee77295a300a8f0be45d1f8da8 /graphics/macgui
parentff323092619e97157d3826a7f3c821f45b67635f (diff)
downloadscummvm-rg350-bd7aa647de713df4a77ac02662bda7e40e03006f.tar.gz
scummvm-rg350-bd7aa647de713df4a77ac02662bda7e40e03006f.tar.bz2
scummvm-rg350-bd7aa647de713df4a77ac02662bda7e40e03006f.zip
GRAPHICS: MACGUI: Take submenu arrow indicator width into account
Diffstat (limited to 'graphics/macgui')
-rw-r--r--graphics/macgui/macmenu.cpp3
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;