summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/ui/swlist.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/swlist.cpp
parentb5daabda5495dea5c50e17961ecfed2ea8619d76 (diff)
Merge remote-tracking branch 'refs/remotes/mamedev/master'
Second attempt
Diffstat (limited to 'src/emu/ui/swlist.cpp')
-rw-r--r--src/emu/ui/swlist.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/emu/ui/swlist.cpp b/src/emu/ui/swlist.cpp
index 64eb5109fae..1a3ce5fe736 100644
--- a/src/emu/ui/swlist.cpp
+++ b/src/emu/ui/swlist.cpp
@@ -355,7 +355,10 @@ void ui_menu_software_list::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)
@@ -448,7 +451,7 @@ void ui_menu_software::handle()
const ui_menu_event *event = process(0);
if (event != nullptr && event->iptkey == IPT_UI_SELECT) {
- // ui_menu::stack_push(auto_alloc_clear(machine(), <ui_menu_software_list>(machine(), container, (software_list_config *)event->itemref, image)));
+ // ui_menu::stack_push(global_alloc_clear<ui_menu_software_list>(machine(), container, (software_list_config *)event->itemref, image));
*m_result = (software_list_device *)event->itemref;
ui_menu::stack_pop(machine());
}