summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/selsoft.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-05-22 11:35:39 -0400
committer AJR <ajrhacker@users.noreply.github.com>2019-05-22 11:35:39 -0400
commitb085fad792639d0da2e236ad45fdf71f740e8aa8 (patch)
tree5f680d0dec4042f92ea8642ace1d4636c76ad1a8 /src/frontend/mame/ui/selsoft.cpp
parentaa724006054f7d7cd0c4bd66119ad7342f008649 (diff)
ui/menu.cpp: Privatize a few variables (nw)
Diffstat (limited to 'src/frontend/mame/ui/selsoft.cpp')
-rw-r--r--src/frontend/mame/ui/selsoft.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/mame/ui/selsoft.cpp b/src/frontend/mame/ui/selsoft.cpp
index 26635c6d31a..a5b5a5bb594 100644
--- a/src/frontend/mame/ui/selsoft.cpp
+++ b/src/frontend/mame/ui/selsoft.cpp
@@ -135,7 +135,7 @@ menu_select_software::~menu_select_software()
void menu_select_software::handle()
{
if (m_prev_selected == nullptr)
- m_prev_selected = item[0].ref;
+ m_prev_selected = item(0).ref;
// ignore pause keys by swallowing them before we process the menu
machine().ui_input().pressed(IPT_UI_PAUSE);
@@ -326,8 +326,8 @@ void menu_select_software::populate(float &customtop, float &custombottom)
if (old_software != -1)
{
- selected = old_software;
- top_line = selected - (ui_globals::visible_sw_lines / 2);
+ set_selected_index(old_software);
+ top_line = selected_index() - (ui_globals::visible_sw_lines / 2);
}
reselect_last::reset();