(Menu) Get rid of menu->categories.size

This commit is contained in:
twinaphex 2015-06-07 16:05:34 +02:00
parent a43f86629c
commit c9741e2e3b
2 changed files with 1 additions and 2 deletions

View File

@ -113,7 +113,6 @@ typedef struct
struct
{
size_t selection_ptr;
size_t size;
} categories;
bool need_refresh;

View File

@ -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