(XMB) Indent nits
This commit is contained in:
parent
c49262eb8c
commit
f730f978af
|
@ -566,7 +566,7 @@ static void xmb_list_open_new(xmb_handle_t *xmb,
|
||||||
xmb_node_t *node = (xmb_node_t*)file_list_get_userdata_at_offset(list, i);
|
xmb_node_t *node = (xmb_node_t*)file_list_get_userdata_at_offset(list, i);
|
||||||
|
|
||||||
if (!node)
|
if (!node)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ia = xmb->item.passive.alpha;
|
ia = xmb->item.passive.alpha;
|
||||||
if (i == current)
|
if (i == current)
|
||||||
|
@ -686,7 +686,7 @@ static void xmb_list_switch_old(xmb_handle_t *xmb,
|
||||||
float ia = 0;
|
float ia = 0;
|
||||||
|
|
||||||
if (!node)
|
if (!node)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
xmb_push_animations(node, ia, -xmb->icon.spacing.horizontal * dir);
|
xmb_push_animations(node, ia, -xmb->icon.spacing.horizontal * dir);
|
||||||
}
|
}
|
||||||
|
@ -731,7 +731,7 @@ static void xmb_list_switch_new(xmb_handle_t *xmb,
|
||||||
float ia = 0.5;
|
float ia = 0.5;
|
||||||
|
|
||||||
if (!node)
|
if (!node)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
node->x = xmb->icon.spacing.horizontal * dir;
|
node->x = xmb->icon.spacing.horizontal * dir;
|
||||||
node->alpha = 0;
|
node->alpha = 0;
|
||||||
|
@ -1290,7 +1290,7 @@ static void xmb_frame(void)
|
||||||
xmb->menu_stack_old,
|
xmb->menu_stack_old,
|
||||||
xmb->selection_ptr_old,
|
xmb->selection_ptr_old,
|
||||||
depth > 1 ? menu->categories.selection_ptr :
|
depth > 1 ? menu->categories.selection_ptr :
|
||||||
xmb->categories.selection_ptr_old);
|
xmb->categories.selection_ptr_old);
|
||||||
|
|
||||||
xmb_draw_items(xmb, gl,
|
xmb_draw_items(xmb, gl,
|
||||||
menu->menu_list->selection_buf,
|
menu->menu_list->selection_buf,
|
||||||
|
@ -1332,13 +1332,13 @@ static void xmb_frame(void)
|
||||||
xmb_draw_icon_begin(gl);
|
xmb_draw_icon_begin(gl);
|
||||||
|
|
||||||
xmb_draw_icon(gl, xmb, node->icon,
|
xmb_draw_icon(gl, xmb, node->icon,
|
||||||
xmb->x + xmb->categories.x_pos +
|
xmb->x + xmb->categories.x_pos +
|
||||||
xmb->margins.screen.left +
|
xmb->margins.screen.left +
|
||||||
xmb->icon.spacing.horizontal * (i + 1) - xmb->icon.size / 2.0,
|
xmb->icon.spacing.horizontal * (i + 1) - xmb->icon.size / 2.0,
|
||||||
xmb->margins.screen.top + xmb->icon.size / 2.0,
|
xmb->margins.screen.top + xmb->icon.size / 2.0,
|
||||||
node->alpha,
|
node->alpha,
|
||||||
0,
|
0,
|
||||||
node->zoom);
|
node->zoom);
|
||||||
|
|
||||||
xmb_draw_icon_end();
|
xmb_draw_icon_end();
|
||||||
}
|
}
|
||||||
|
@ -1556,7 +1556,7 @@ static bool xmb_load_image(void *data, menu_image_type_t type)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void xmb_context_reset_horizontal_list(xmb_handle_t *xmb,
|
static void xmb_context_reset_horizontal_list(xmb_handle_t *xmb,
|
||||||
const char *themepath)
|
const char *themepath)
|
||||||
{
|
{
|
||||||
char iconpath[PATH_MAX_LENGTH];
|
char iconpath[PATH_MAX_LENGTH];
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
@ -1575,7 +1575,7 @@ static void xmb_context_reset_horizontal_list(xmb_handle_t *xmb,
|
||||||
core_info_t *info = NULL;
|
core_info_t *info = NULL;
|
||||||
struct texture_image ti = {0};
|
struct texture_image ti = {0};
|
||||||
xmb_node_t *node = xmb_get_userdata_from_core(
|
xmb_node_t *node = xmb_get_userdata_from_core(
|
||||||
xmb, info, i - 1);
|
xmb, info, i - 1);
|
||||||
|
|
||||||
if (!node)
|
if (!node)
|
||||||
{
|
{
|
||||||
|
@ -1654,7 +1654,7 @@ static void xmb_context_reset_textures(xmb_handle_t *xmb, const char *iconpath)
|
||||||
fill_pathname_join(path, iconpath, "settings.png", sizeof(path));
|
fill_pathname_join(path, iconpath, "settings.png", sizeof(path));
|
||||||
break;
|
break;
|
||||||
case XMB_TEXTURE_SETTING:
|
case XMB_TEXTURE_SETTING:
|
||||||
fill_pathname_join(path, iconpath, "setting.png", sizeof(path));
|
fill_pathname_join(path, iconpath, "setting.png", sizeof(path));
|
||||||
break;
|
break;
|
||||||
case XMB_TEXTURE_SUBSETTING:
|
case XMB_TEXTURE_SUBSETTING:
|
||||||
fill_pathname_join(path, iconpath, "subsetting.png", sizeof(path));
|
fill_pathname_join(path, iconpath, "subsetting.png", sizeof(path));
|
||||||
|
@ -1755,7 +1755,7 @@ static void xmb_context_reset_background(const char *iconpath)
|
||||||
|
|
||||||
if (path_file_exists(path))
|
if (path_file_exists(path))
|
||||||
rarch_main_data_msg_queue_push(DATA_TYPE_IMAGE, path,
|
rarch_main_data_msg_queue_push(DATA_TYPE_IMAGE, path,
|
||||||
"cb_menu_wallpaper", 0, 1, true);
|
"cb_menu_wallpaper", 0, 1, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void xmb_context_reset(void)
|
static void xmb_context_reset(void)
|
||||||
|
@ -1923,22 +1923,22 @@ static void xmb_list_cache(bool horizontal, unsigned action)
|
||||||
stack_size = menu->menu_list->menu_stack->size;
|
stack_size = menu->menu_list->menu_stack->size;
|
||||||
|
|
||||||
if (menu->menu_list->menu_stack->list[stack_size - 1].label)
|
if (menu->menu_list->menu_stack->list[stack_size - 1].label)
|
||||||
free(menu->menu_list->menu_stack->list[stack_size - 1].label);
|
free(menu->menu_list->menu_stack->list[stack_size - 1].label);
|
||||||
menu->menu_list->menu_stack->list[stack_size - 1].label = NULL;
|
menu->menu_list->menu_stack->list[stack_size - 1].label = NULL;
|
||||||
|
|
||||||
if (menu->categories.selection_ptr == 0)
|
if (menu->categories.selection_ptr == 0)
|
||||||
{
|
{
|
||||||
menu->menu_list->menu_stack->list[stack_size - 1].label =
|
menu->menu_list->menu_stack->list[stack_size - 1].label =
|
||||||
strdup("Main Menu");
|
strdup("Main Menu");
|
||||||
menu->menu_list->menu_stack->list[stack_size - 1].type =
|
menu->menu_list->menu_stack->list[stack_size - 1].type =
|
||||||
MENU_SETTINGS;
|
MENU_SETTINGS;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
menu->menu_list->menu_stack->list[stack_size - 1].label =
|
menu->menu_list->menu_stack->list[stack_size - 1].label =
|
||||||
strdup("Horizontal Menu");
|
strdup("Horizontal Menu");
|
||||||
menu->menu_list->menu_stack->list[stack_size - 1].type =
|
menu->menu_list->menu_stack->list[stack_size - 1].type =
|
||||||
MENU_SETTING_HORIZONTAL_MENU;
|
MENU_SETTING_HORIZONTAL_MENU;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue