summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/swlist.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-07-10 02:42:38 +1000
committer Vas Crabb <vas@vastheman.com>2016-07-10 03:01:13 +1000
commit1abf53ca6a7a01ae2d4491825a97b0a4baef634a (patch)
tree2a061c81dab912dbf52f8cdd54f97507820029dd /src/frontend/mame/ui/swlist.cpp
parent2364b48f0dd496de3908fa4d3bcd24693a5f6231 (diff)
UI code refactoring: [Vas Crabb]
* Split out main menu and dat box drawing from base class * Make a bunch of class statics proper per-machine persistent objects * Object lifecycle fixes
Diffstat (limited to 'src/frontend/mame/ui/swlist.cpp')
-rw-r--r--src/frontend/mame/ui/swlist.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/mame/ui/swlist.cpp b/src/frontend/mame/ui/swlist.cpp
index 859fdcc6f11..5eb4fe7fd62 100644
--- a/src/frontend/mame/ui/swlist.cpp
+++ b/src/frontend/mame/ui/swlist.cpp
@@ -110,7 +110,7 @@ void menu_software_parts::handle()
software_part_menu_entry *entry = (software_part_menu_entry *) event->itemref;
m_result = entry->type;
*m_selected_part = entry->part;
- menu::stack_pop(machine());
+ stack_pop();
}
}
@@ -244,7 +244,7 @@ void menu_software_list::handle()
{
entry_info *info = (entry_info *) event->itemref;
m_result = info->short_name;
- menu::stack_pop(machine());
+ stack_pop();
}
else if (event->iptkey == IPT_SPECIAL)
{
@@ -316,7 +316,7 @@ void menu_software_list::handle()
if (m_filename_buffer[0] != '\0')
memset(m_filename_buffer, '\0', ARRAY_LENGTH(m_filename_buffer));
m_result = m_filename_buffer;
- menu::stack_pop(machine());
+ stack_pop();
}
}
}
@@ -402,7 +402,7 @@ void menu_software::handle()
if (event != nullptr && event->iptkey == IPT_UI_SELECT) {
//menu::stack_push<menu_software_list>(ui(), container, (software_list_config *)event->itemref, image);
*m_result = (software_list_device *)event->itemref;
- menu::stack_pop(machine());
+ stack_pop();
}
}