summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/menu.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-12-13 15:01:53 -0500
committer AJR <ajrhacker@users.noreply.github.com>2020-12-13 15:01:53 -0500
commit08f8f2f0460bf2fae4f13402ab07e1cad9720259 (patch)
treec09fe9692f72a2110a1fa61ada2304b86d37dfe3 /src/frontend/mame/ui/menu.cpp
parent8342e4309fff9abe692000b41dd812d9e054fe50 (diff)
ui/menu.cpp: Fix highlighting glitch with input menu for inputs bound to O (regressed in c22cb17f326b4939d8ff4219410909e32e70ab86)
Diffstat (limited to 'src/frontend/mame/ui/menu.cpp')
-rw-r--r--src/frontend/mame/ui/menu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/mame/ui/menu.cpp b/src/frontend/mame/ui/menu.cpp
index c52b61449e7..068780f2b6e 100644
--- a/src/frontend/mame/ui/menu.cpp
+++ b/src/frontend/mame/ui/menu.cpp
@@ -701,13 +701,13 @@ void menu::draw(uint32_t flags)
}
// customize subitem text color
- if (!core_strnicmp(&subitem_text[0], _("On"), subitem_text.length()))
+ if (!core_stricmp(pitem.subtext.c_str(), _("On")))
fgcolor2 = rgb_t(0x00,0xff,0x00);
- if (!core_strnicmp(&subitem_text[0], _("Off"), subitem_text.length()))
+ if (!core_stricmp(pitem.subtext.c_str(), _("Off")))
fgcolor2 = rgb_t(0xff,0x00,0x00);
- if (!core_strnicmp(&subitem_text[0], _("Auto"), subitem_text.length()))
+ if (!core_stricmp(pitem.subtext.c_str(), _("Auto")))
fgcolor2 = rgb_t(0xff,0xff,0x00);
// draw the subitem right-justified