mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 08:59:58 +00:00
(Menu) Get rid of menu->categories.size
This commit is contained in:
parent
a43f86629c
commit
c9741e2e3b
@ -113,7 +113,6 @@ typedef struct
|
||||
struct
|
||||
{
|
||||
size_t selection_ptr;
|
||||
size_t size;
|
||||
} categories;
|
||||
|
||||
bool need_refresh;
|
||||
|
@ -153,7 +153,7 @@ static int action_right_mainmenu(unsigned type, const char *label,
|
||||
if (list_size == 1)
|
||||
{
|
||||
menu->navigation.selection_ptr = 0;
|
||||
if (menu->categories.selection_ptr != (menu->categories.size - 1))
|
||||
if (menu->categories.selection_ptr != (menu_driver_list_get_size(MENU_LIST_HORIZONTAL) - 1))
|
||||
push_list = 1;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user