diff options
author | 2021-11-13 02:49:51 +1100 | |
---|---|---|
committer | 2021-11-13 02:49:51 +1100 | |
commit | 839192e7694158e8e35c039313b167d219f08de2 (patch) | |
tree | d65cb47c42bed17d7a846a6e5105b301767b698e /src/frontend/mame/ui/textbox.cpp | |
parent | 1364bd571e7a2f27a6f49b0d1cd37c03fa795539 (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.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)); |