(Menu) Get rid of menu->categories.size
This commit is contained in:
parent
a43f86629c
commit
c9741e2e3b
|
@ -113,7 +113,6 @@ typedef struct
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
size_t selection_ptr;
|
size_t selection_ptr;
|
||||||
size_t size;
|
|
||||||
} categories;
|
} categories;
|
||||||
|
|
||||||
bool need_refresh;
|
bool need_refresh;
|
||||||
|
|
|
@ -153,7 +153,7 @@ static int action_right_mainmenu(unsigned type, const char *label,
|
||||||
if (list_size == 1)
|
if (list_size == 1)
|
||||||
{
|
{
|
||||||
menu->navigation.selection_ptr = 0;
|
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;
|
push_list = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue