mirror of
https://github.com/libretro/RetroArch
synced 2025-04-03 19:20:24 +00:00
(Menu) Use menu_list_get_stack_size instead
This commit is contained in:
parent
f80d9abd6a
commit
f91b709b44
@ -241,7 +241,7 @@ static size_t xmb_list_get_size(void *data, menu_list_type_t type)
|
|||||||
{
|
{
|
||||||
case MENU_LIST_PLAIN:
|
case MENU_LIST_PLAIN:
|
||||||
if (menu && menu->menu_list)
|
if (menu && menu->menu_list)
|
||||||
list_size = menu_list_get_size(menu->menu_list);
|
list_size = menu_list_get_stack_size(menu->menu_list);
|
||||||
break;
|
break;
|
||||||
case MENU_LIST_HORIZONTAL:
|
case MENU_LIST_HORIZONTAL:
|
||||||
if (xmb && xmb->horizontal_list)
|
if (xmb && xmb->horizontal_list)
|
||||||
@ -263,7 +263,7 @@ static void *xmb_list_get_entry(void *data, menu_list_type_t type, unsigned i)
|
|||||||
{
|
{
|
||||||
case MENU_LIST_PLAIN:
|
case MENU_LIST_PLAIN:
|
||||||
if (menu && menu->menu_list)
|
if (menu && menu->menu_list)
|
||||||
list_size = menu_list_get_size(menu->menu_list);
|
list_size = menu_list_get_stack_size(menu->menu_list);
|
||||||
if (i < list_size)
|
if (i < list_size)
|
||||||
ptr = (void*)&menu->menu_list->menu_stack->list[i];
|
ptr = (void*)&menu->menu_list->menu_stack->list[i];
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user