From cc24a339d8c0517259084b5c178d784626ba965c Mon Sep 17 00:00:00 2001 From: ImJezze Date: Sun, 21 Feb 2016 11:48:45 +0100 Subject: Merge remote-tracking branch 'refs/remotes/mamedev/master' Second attempt --- src/emu/ui/swlist.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/emu/ui/swlist.cpp') 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(), (machine(), container, (software_list_config *)event->itemref, image))); + // ui_menu::stack_push(global_alloc_clear(machine(), container, (software_list_config *)event->itemref, image)); *m_result = (software_list_device *)event->itemref; ui_menu::stack_pop(machine()); } -- cgit v1.2.3-70-g09d2