summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-12-05 00:42:48 +1100
committer Vas Crabb <vas@vastheman.com>2021-12-05 00:42:48 +1100
commit5258f034097f7801606a77a9a4debe9828077fc7 (patch)
tree778f1af548961f7c8bb064d92bc3479b6e08d680 /src/frontend
parenta63e82c5d7a0471f5e31c823641966c23a458339 (diff)
-frontend: Give heading items in menus a bit of horizontal space.
-emu/machine.cpp: Got rid of an outdated and hence misleading comment. -Got rid of a few more uses of UNUSED_FUNCTION. -Tidied up more slot machine layouts, and fixed VFDs in debug views that had inadvertently been broken.
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/mame/ui/menu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/frontend/mame/ui/menu.cpp b/src/frontend/mame/ui/menu.cpp
index 4dc265f5d14..1b8290f77f5 100644
--- a/src/frontend/mame/ui/menu.cpp
+++ b/src/frontend/mame/ui/menu.cpp
@@ -480,6 +480,8 @@ void menu::draw(uint32_t flags)
// add in width of right hand side
if (!pitem.subtext().empty())
total_width += 2.0f * gutter_width + ui().get_string_width(pitem.subtext());
+ else if (pitem.flags() & FLAG_UI_HEADING)
+ total_width += 4.0f * ud_arrow_width;
// track the maximum
if (total_width > visible_width)