summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui/filesel.cpp
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2016-02-21 11:48:45 +0100
committer ImJezze <jezze@gmx.net>2016-02-21 11:48:45 +0100
commitcc24a339d8c0517259084b5c178d784626ba965c (patch)
tree9868e9687b5802ae0a3733712a3bbeb3bc75c953 /src/emu/ui/filesel.cpp
parentb5daabda5495dea5c50e17961ecfed2ea8619d76 (diff)
Merge remote-tracking branch 'refs/remotes/mamedev/master'
Second attempt
Diffstat (limited to 'src/emu/ui/filesel.cpp')
-rw-r--r--src/emu/ui/filesel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emu/ui/filesel.cpp b/src/emu/ui/filesel.cpp
index 140bfdd492d..e757f537044 100644
--- a/src/emu/ui/filesel.cpp
+++ b/src/emu/ui/filesel.cpp
@@ -749,7 +749,10 @@ void ui_menu_file_selector::handle()
}
if (selected_entry != nullptr && selected_entry != cur_selected)
- set_selection((void *) selected_entry);
+ {
+ set_selection((void *)selected_entry);
+ top_line = selected - (visible_lines / 2);
+ }
}
}
else if (event->iptkey == IPT_UI_CANCEL)