diff options
Diffstat (limited to 'src/frontend/mame/ui/custmenu.cpp')
-rw-r--r-- | src/frontend/mame/ui/custmenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/mame/ui/custmenu.cpp b/src/frontend/mame/ui/custmenu.cpp index 774cce13fe9..761dc2b1291 100644 --- a/src/frontend/mame/ui/custmenu.cpp +++ b/src/frontend/mame/ui/custmenu.cpp @@ -212,7 +212,7 @@ void menu_custom_filter::custom_render(void *selectedref, float top, float botto ui().draw_text_full(container(), _("Select custom filters:"), 0.0f, 0.0f, 1.0f, ui::text_layout::CENTER, ui::text_layout::NEVER, mame_ui_manager::NONE, rgb_t::white, rgb_t::black, &width, nullptr); width += (2.0f * UI_BOX_LR_BORDER) + 0.01f; - float maxwidth = MAX(width, origx2 - origx1); + float maxwidth = std::max(width, origx2 - origx1); // compute our bounds float x1 = 0.5f - 0.5f * maxwidth; @@ -527,7 +527,7 @@ void menu_swcustom_filter::custom_render(void *selectedref, float top, float bot ui().draw_text_full(container(), _("Select custom filters:"), 0.0f, 0.0f, 1.0f, ui::text_layout::CENTER, ui::text_layout::NEVER, mame_ui_manager::NONE, rgb_t::white, rgb_t::black, &width, nullptr); width += (2.0f * UI_BOX_LR_BORDER) + 0.01f; - float maxwidth = MAX(width, origx2 - origx1); + float maxwidth = std::max(width, origx2 - origx1); // compute our bounds float x1 = 0.5f - 0.5f * maxwidth; |