diff options
Diffstat (limited to 'src/frontend/mame/ui/textbox.cpp')
-rw-r--r-- | src/frontend/mame/ui/textbox.cpp | 2 |
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)); |