summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/textbox.cpp
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2021-11-13 22:09:24 +1100
committer Robbbert <Robbbert@users.noreply.github.com>2021-11-13 22:09:24 +1100
commitd8dd9bbee9c7fe319b6f16daa2349b3bb09b82e8 (patch)
tree0f7adaab0e1dee0b64071eca5fe49f4c50f45e80 /src/frontend/mame/ui/textbox.cpp
parent64af120bab29a76161b960ed2a3639c6a2b19afd (diff)
parentd5848b215bb566c0dfbef95a2c55c59a81771c29 (diff)
Merge remote-tracking branch 'upstream/master'
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));