mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Cleanups
This commit is contained in:
parent
79f3f6ee72
commit
017961d433
@ -175,7 +175,7 @@ static void *menu_userdata = NULL;
|
||||
|
||||
/* Quick jumping indices with L/R.
|
||||
* Rebuilt when parsing directory. */
|
||||
static uint8_t scroll_index_list[SCROLL_INDEX_SIZE];
|
||||
static size_t scroll_index_list[SCROLL_INDEX_SIZE];
|
||||
static unsigned scroll_index_size = 0;
|
||||
static unsigned scroll_acceleration = 0;
|
||||
static size_t menu_driver_selection_ptr = 0;
|
||||
@ -2309,10 +2309,10 @@ bool menu_driver_ctl(enum rarch_menu_ctl_state state, void *data)
|
||||
if (!sel)
|
||||
return false;
|
||||
|
||||
if ((scroll_index_size + 1) >= SCROLL_INDEX_SIZE)
|
||||
scroll_index_list[scroll_index_size] = (uint8_t)*sel;
|
||||
else
|
||||
scroll_index_list[scroll_index_size++] = (uint8_t)*sel;
|
||||
scroll_index_list[scroll_index_size] = *sel;
|
||||
|
||||
if (!((scroll_index_size + 1) >= SCROLL_INDEX_SIZE))
|
||||
scroll_index_size++;
|
||||
}
|
||||
break;
|
||||
case MENU_NAVIGATION_CTL_GET_SCROLL_ACCEL:
|
||||
|
Loading…
x
Reference in New Issue
Block a user