summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/textbox.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-11-13 02:49:51 +1100
committer Vas Crabb <vas@vastheman.com>2021-11-13 02:49:51 +1100
commit839192e7694158e8e35c039313b167d219f08de2 (patch)
treed65cb47c42bed17d7a846a6e5105b301767b698e /src/frontend/mame/ui/textbox.cpp
parent1364bd571e7a2f27a6f49b0d1cd37c03fa795539 (diff)
-osd/windows: Fixed stupid potential deadlock on exit.
-frontend: Some changes to menu item class that will make it possbile to reduce the number of menu rebuilds.
Diffstat (limited to 'src/frontend/mame/ui/textbox.cpp')
-rw-r--r--src/frontend/mame/ui/textbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frontend/mame/ui/textbox.cpp b/src/frontend/mame/ui/textbox.cpp
index 9761491bf78..71de239b35f 100644
--- a/src/frontend/mame/ui/textbox.cpp
+++ b/src/frontend/mame/ui/textbox.cpp
@@ -141,7 +141,7 @@ void menu_textbox::draw(uint32_t flags)
// get width required to draw the sole menu item
menu_item const &pitem = item(0);
- std::string_view const itemtext = pitem.text;
+ std::string_view const itemtext = pitem.text();
float const itemwidth = gutter_width + ui().get_string_width(itemtext) + gutter_width;
float const draw_width = std::min(maximum_width, std::max(itemwidth, m_desired_width));