diff options
Diffstat (limited to 'src/frontend/mame/ui/simpleselgame.cpp')
-rw-r--r-- | src/frontend/mame/ui/simpleselgame.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/frontend/mame/ui/simpleselgame.cpp b/src/frontend/mame/ui/simpleselgame.cpp index a2334a3485d..e22e61b6a2b 100644 --- a/src/frontend/mame/ui/simpleselgame.cpp +++ b/src/frontend/mame/ui/simpleselgame.cpp @@ -42,7 +42,7 @@ simple_menu_select_game::simple_menu_select_game(mame_ui_manager &mui, render_co , m_cached_driver(nullptr) , m_cached_flags(machine_flags::NOT_WORKING) , m_cached_unemulated(device_t::feature::NONE), m_cached_imperfect(device_t::feature::NONE) - , m_cached_color(ui().colors().background_color()) + , m_cached_color(UI_BACKGROUND_COLOR) { build_driver_list(); if (gamename) @@ -279,8 +279,8 @@ void simple_menu_select_game::populate(float &customtop, float &custombottom) } // configure the custom rendering - customtop = ui().get_line_height() + 3.0f * ui().box_tb_border(); - custombottom = 4.0f * ui().get_line_height() + 3.0f * ui().box_tb_border(); + customtop = ui().get_line_height() + 3.0f * UI_BOX_TB_BORDER; + custombottom = 4.0f * ui().get_line_height() + 3.0f * UI_BOX_TB_BORDER; } @@ -302,9 +302,9 @@ void simple_menu_select_game::custom_render(void *selectedref, float top, float // draw the top box draw_text_box( tempbuf, tempbuf + 1, - origx1, origx2, origy1 - top, origy1 - ui().box_tb_border(), + origx1, origx2, origy1 - top, origy1 - UI_BOX_TB_BORDER, ui::text_layout::CENTER, ui::text_layout::TRUNCATE, false, - ui().colors().text_color(), ui().colors().background_color(), 1.0f); + UI_TEXT_COLOR, UI_BACKGROUND_COLOR, 1.0f); // determine the text to render below driver = ((uintptr_t)selectedref > skip_main_items) ? (const game_driver *)selectedref : nullptr; @@ -323,7 +323,7 @@ void simple_menu_select_game::custom_render(void *selectedref, float top, float if (driver != m_cached_driver) { emu_options clean_options; - machine_static_info const info(ui().options(), machine_config(*driver, clean_options)); + machine_static_info const info(machine_config(*driver, clean_options)); m_cached_driver = driver; m_cached_flags = info.machine_flags(); m_cached_unemulated = info.unemulated_features(); @@ -384,9 +384,9 @@ void simple_menu_select_game::custom_render(void *selectedref, float top, float // draw the bottom box draw_text_box( tempbuf, tempbuf + 4, - origx1, origx2, origy2 + ui().box_tb_border(), origy2 + bottom, + origx1, origx2, origy2 + UI_BOX_TB_BORDER, origy2 + bottom, ui::text_layout::CENTER, ui::text_layout::TRUNCATE, true, - ui().colors().text_color(), driver ? m_cached_color : ui().colors().background_color(), 1.0f); + UI_TEXT_COLOR, driver ? m_cached_color : UI_BACKGROUND_COLOR, 1.0f); } |