mirror of
https://github.com/holub/mame
synced 2025-06-24 21:34:43 +03:00
Including the path separator when switching directories in the file selection UI
This commit is contained in:
parent
d348747601
commit
32a38d3f78
@ -340,7 +340,7 @@ void menu_file_selector::custom_render(void *selectedref, float top, float botto
|
|||||||
// we're hovering over a directory! highlight it
|
// we're hovering over a directory! highlight it
|
||||||
auto target_dir_start = m_current_directory.rfind(PATH_SEPARATOR, hit_start) + 1;
|
auto target_dir_start = m_current_directory.rfind(PATH_SEPARATOR, hit_start) + 1;
|
||||||
auto target_dir_end = m_current_directory.find(PATH_SEPARATOR, hit_start + hit_span);
|
auto target_dir_end = m_current_directory.find(PATH_SEPARATOR, hit_start + hit_span);
|
||||||
m_hover_directory = m_current_directory.substr(0, target_dir_end);
|
m_hover_directory = m_current_directory.substr(0, target_dir_end + strlen(PATH_SEPARATOR));
|
||||||
|
|
||||||
// highlight the text in question
|
// highlight the text in question
|
||||||
rgb_t fgcolor = UI_MOUSEOVER_COLOR;
|
rgb_t fgcolor = UI_MOUSEOVER_COLOR;
|
||||||
|
Loading…
Reference in New Issue
Block a user