This commit is contained in:
twinaphex 2016-03-03 06:59:54 +01:00
parent 5cef419209
commit fe3c279f73
2 changed files with 7 additions and 14 deletions

View File

@ -685,22 +685,17 @@ static void mui_draw_cursor(mui_handle_t *mui,
static size_t mui_list_get_size(void *data, enum menu_list_type type)
{
size_t list_size = 0;
(void)data;
switch (type)
{
case MENU_LIST_PLAIN:
list_size = menu_entries_get_stack_size(0);
break;
return menu_entries_get_stack_size(0);
case MENU_LIST_TABS:
list_size = MUI_SYSTEM_TAB_END;
break;
return MUI_SYSTEM_TAB_END;
default:
break;
}
return list_size;
return 0;
}
static void bgcolor_setalpha(float *bg, float alpha)

View File

@ -266,23 +266,21 @@ static size_t xmb_list_get_selection(void *data)
static size_t xmb_list_get_size(void *data, enum menu_list_type type)
{
size_t list_size = 0;
xmb_handle_t *xmb = (xmb_handle_t*)data;
switch (type)
{
case MENU_LIST_PLAIN:
list_size = menu_entries_get_stack_size(0);
break;
return menu_entries_get_stack_size(0);
case MENU_LIST_HORIZONTAL:
if (xmb && xmb->horizontal_list)
list_size = file_list_get_size(xmb->horizontal_list);
return file_list_get_size(xmb->horizontal_list);
break;
case MENU_LIST_TABS:
list_size = XMB_SYSTEM_TAB_END;
return XMB_SYSTEM_TAB_END;
}
return list_size;
return 0;
}
static void *xmb_list_get_entry(void *data, enum menu_list_type type, unsigned i)