mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 17:04:34 +00:00
(XMB) Fix horizontal navigation
This commit is contained in:
parent
ad9f0c4021
commit
3673fc6100
@ -151,7 +151,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_driver_list_get_size(MENU_LIST_HORIZONTAL) - 1))
|
||||
if (menu->categories.selection_ptr != (menu_driver_list_get_size(MENU_LIST_HORIZONTAL)))
|
||||
push_list = 1;
|
||||
}
|
||||
else
|
||||
|
@ -1927,7 +1927,7 @@ static void xmb_list_delete(file_list_t *list,
|
||||
|
||||
static void xmb_list_cache(menu_list_type_t type, unsigned action)
|
||||
{
|
||||
size_t stack_size;
|
||||
size_t stack_size, list_size;
|
||||
xmb_handle_t *xmb = NULL;
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
menu_list_t *menu_list = menu_list_get_ptr();
|
||||
@ -1961,6 +1961,13 @@ static void xmb_list_cache(menu_list_type_t type, unsigned action)
|
||||
break;
|
||||
}
|
||||
|
||||
list_size = xmb_list_get_size(menu, MENU_LIST_HORIZONTAL);
|
||||
if (menu->categories.selection_ptr > list_size)
|
||||
{
|
||||
menu->categories.selection_ptr = list_size;
|
||||
return;
|
||||
}
|
||||
|
||||
stack_size = menu_list->menu_stack->size;
|
||||
|
||||
if (menu_list->menu_stack->list[stack_size - 1].label)
|
||||
|
Loading…
x
Reference in New Issue
Block a user