From bd7aa647de713df4a77ac02662bda7e40e03006f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 2 Oct 2019 00:32:22 +0200 Subject: GRAPHICS: MACGUI: Take submenu arrow indicator width into account --- graphics/macgui/macmenu.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'graphics/macgui') 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; -- cgit v1.2.3