mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 10:40:39 +00:00
(menu_navigation.c) Cleanup
This commit is contained in:
parent
8a7c233e3f
commit
f27d2b70f6
@ -37,10 +37,6 @@ bool menu_navigation_ctl(enum menu_navigation_ctl_state state, void *data)
|
||||
} scroll_index;
|
||||
static unsigned scroll_acceleration = 0;
|
||||
static size_t selection_ptr = 0;
|
||||
settings_t *settings = config_get_ptr();
|
||||
size_t menu_list_size = menu_entries_get_size();
|
||||
|
||||
(void)settings;
|
||||
|
||||
switch (state)
|
||||
{
|
||||
@ -61,7 +57,9 @@ bool menu_navigation_ctl(enum menu_navigation_ctl_state state, void *data)
|
||||
break;
|
||||
case MENU_NAVIGATION_CTL_INCREMENT:
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
unsigned *scroll_speed = (unsigned*)data;
|
||||
size_t menu_list_size = menu_entries_get_size();
|
||||
|
||||
if (!scroll_speed)
|
||||
return false;
|
||||
@ -102,7 +100,9 @@ bool menu_navigation_ctl(enum menu_navigation_ctl_state state, void *data)
|
||||
{
|
||||
size_t idx = 0;
|
||||
bool scroll = true;
|
||||
settings_t *settings = config_get_ptr();
|
||||
unsigned *scroll_speed = (unsigned*)data;
|
||||
size_t menu_list_size = menu_entries_get_size();
|
||||
|
||||
if (!scroll_speed)
|
||||
return false;
|
||||
@ -132,6 +132,7 @@ bool menu_navigation_ctl(enum menu_navigation_ctl_state state, void *data)
|
||||
break;
|
||||
case MENU_NAVIGATION_CTL_SET_LAST:
|
||||
{
|
||||
size_t menu_list_size = menu_entries_get_size();
|
||||
size_t new_selection = menu_list_size - 1;
|
||||
menu_navigation_ctl(
|
||||
MENU_NAVIGATION_CTL_SET_SELECTION, &new_selection);
|
||||
|
Loading…
Reference in New Issue
Block a user