summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/filesel.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-11-23 12:48:41 +1100
committer Vas Crabb <vas@vastheman.com>2016-11-23 12:48:41 +1100
commit95254fb277e927adf36580e0822f5ce4f8267e49 (patch)
treedcea794c341b0f918e0b2f635805fa8c0dc1329e /src/frontend/mame/ui/filesel.cpp
parent32c256eccc827d2708c6c270c5c59df4b8a6ae01 (diff)
encapsulate mouse translation in the menu code, make more stuff const
Diffstat (limited to 'src/frontend/mame/ui/filesel.cpp')
-rw-r--r--src/frontend/mame/ui/filesel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/mame/ui/filesel.cpp b/src/frontend/mame/ui/filesel.cpp
index adf1f7f1a39..114fa317c74 100644
--- a/src/frontend/mame/ui/filesel.cpp
+++ b/src/frontend/mame/ui/filesel.cpp
@@ -89,8 +89,8 @@ void menu_file_selector::custom_render(void *selectedref, float top, float botto
y1 += UI_BOX_TB_BORDER;
size_t hit_start = 0, hit_span = 0;
- if (mouse_hit
- && layout.hit_test(mouse_x - x1, mouse_y - y1, hit_start, hit_span)
+ if (is_mouse_hit()
+ && layout.hit_test(get_mouse_x() - x1, get_mouse_y() - y1, hit_start, hit_span)
&& m_current_directory.substr(hit_start, hit_span) != PATH_SEPARATOR)
{
// we're hovering over a directory! highlight it