diff options
Diffstat (limited to 'src/frontend/mame/ui/simpleselgame.cpp')
-rw-r--r-- | src/frontend/mame/ui/simpleselgame.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/mame/ui/simpleselgame.cpp b/src/frontend/mame/ui/simpleselgame.cpp index e22e61b6a2b..ae132679f65 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_BACKGROUND_COLOR) + , m_cached_color(ui().colors().background_color()) { build_driver_list(); if (gamename) @@ -304,7 +304,7 @@ void simple_menu_select_game::custom_render(void *selectedref, float top, float tempbuf, tempbuf + 1, origx1, origx2, origy1 - top, origy1 - UI_BOX_TB_BORDER, ui::text_layout::CENTER, ui::text_layout::TRUNCATE, false, - UI_TEXT_COLOR, UI_BACKGROUND_COLOR, 1.0f); + ui().colors().text_color(), ui().colors().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(machine_config(*driver, clean_options)); + machine_static_info const info(ui().options(), machine_config(*driver, clean_options)); m_cached_driver = driver; m_cached_flags = info.machine_flags(); m_cached_unemulated = info.unemulated_features(); @@ -386,7 +386,7 @@ void simple_menu_select_game::custom_render(void *selectedref, float top, float tempbuf, tempbuf + 4, origx1, origx2, origy2 + UI_BOX_TB_BORDER, origy2 + bottom, ui::text_layout::CENTER, ui::text_layout::TRUNCATE, true, - UI_TEXT_COLOR, driver ? m_cached_color : UI_BACKGROUND_COLOR, 1.0f); + ui().colors().text_color(), driver ? m_cached_color : ui().colors().background_color(), 1.0f); } |