summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/filesel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/ui/filesel.cpp')
-rw-r--r--src/frontend/mame/ui/filesel.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/frontend/mame/ui/filesel.cpp b/src/frontend/mame/ui/filesel.cpp
index 49136d04f64..3907f007517 100644
--- a/src/frontend/mame/ui/filesel.cpp
+++ b/src/frontend/mame/ui/filesel.cpp
@@ -83,11 +83,11 @@ void menu_file_selector::custom_render(void *selectedref, float top, float botto
extra_text_position(origx1, origx2, origy1, top, layout, -1, x1, y1, x2, y2);
// draw a box
- ui().draw_outlined_box(container(), x1, y1, x2, y2, ui().colors().background_color());
+ ui().draw_outlined_box(container(), x1, y1, x2, y2, UI_BACKGROUND_COLOR);
// take off the borders
- x1 += ui().box_lr_border();
- y1 += ui().box_tb_border();
+ x1 += UI_BOX_LR_BORDER;
+ y1 += UI_BOX_TB_BORDER;
size_t hit_start = 0, hit_span = 0;
if (is_mouse_hit()
@@ -100,8 +100,8 @@ void menu_file_selector::custom_render(void *selectedref, float top, float botto
m_hover_directory = m_current_directory.substr(0, target_dir_end + strlen(PATH_SEPARATOR));
// highlight the text in question
- rgb_t fgcolor = ui().colors().mouseover_color();
- rgb_t bgcolor = ui().colors().mouseover_bg_color();
+ rgb_t fgcolor = UI_MOUSEOVER_COLOR;
+ rgb_t bgcolor = UI_MOUSEOVER_BG_COLOR;
layout.restyle(target_dir_start, target_dir_end - target_dir_start, &fgcolor, &bgcolor);
}
else
@@ -464,7 +464,7 @@ void menu_file_selector::populate(float &customtop, float &custombottom)
set_selection((void *)selected_entry);
// set up custom render proc
- customtop = ui().get_line_height() + 3.0f * ui().box_tb_border();
+ customtop = ui().get_line_height() + 3.0f * UI_BOX_TB_BORDER;
}