mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
(XMB) Cleanups
This commit is contained in:
parent
edc31f9a45
commit
47ee96b531
@ -634,7 +634,6 @@ static xmb_node_t* xmb_node_for_core(int i)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
info_list = (core_info_list_t*)g_extern.core_info;
|
info_list = (core_info_list_t*)g_extern.core_info;
|
||||||
info = NULL;
|
|
||||||
|
|
||||||
if (!info_list)
|
if (!info_list)
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1440,11 +1439,18 @@ static void xmb_context_reset(void *data)
|
|||||||
strlcat(content_texturepath, core_id, sizeof(content_texturepath));
|
strlcat(content_texturepath, core_id, sizeof(content_texturepath));
|
||||||
strlcat(content_texturepath, "-content.png", sizeof(content_texturepath));
|
strlcat(content_texturepath, "-content.png", sizeof(content_texturepath));
|
||||||
|
|
||||||
node->alpha = (i == xmb->active_category) ? xmb->c_active_alpha
|
node->alpha = 0;
|
||||||
: (xmb->depth <= 1) ? xmb->c_passive_alpha : 0;
|
node->zoom = xmb->c_passive_zoom;
|
||||||
node->zoom = (i == xmb->active_category) ? xmb->c_active_zoom : xmb->c_passive_zoom;
|
node->icon = xmb_png_texture_load(texturepath);
|
||||||
node->icon = xmb_png_texture_load(texturepath);
|
|
||||||
node->content_icon = xmb_png_texture_load(content_texturepath);
|
node->content_icon = xmb_png_texture_load(content_texturepath);
|
||||||
|
|
||||||
|
if (i == xmb->active_category)
|
||||||
|
{
|
||||||
|
node->alpha = xmb->c_active_alpha;
|
||||||
|
node->zoom = xmb->c_active_zoom;
|
||||||
|
}
|
||||||
|
else if (xmb->depth <= 1)
|
||||||
|
node->alpha = xmb->c_passive_alpha;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user