mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 22:20:31 +00:00
Cleanup xmb_list_open_new
This commit is contained in:
parent
8cf34c3fe6
commit
71feec72b4
@ -1351,29 +1351,36 @@ static void xmb_list_open_new(xmb_handle_t *xmb,
|
|||||||
if (!node)
|
if (!node)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (dir == 1 || (dir == -1 && i != current))
|
if (dir == 1)
|
||||||
node->alpha = 0;
|
{
|
||||||
|
node->alpha = 0;
|
||||||
if (dir == 1 || dir == -1)
|
|
||||||
node->label_alpha = 0;
|
node->label_alpha = 0;
|
||||||
|
}
|
||||||
|
else if (dir == -1)
|
||||||
|
{
|
||||||
|
if (i != current)
|
||||||
|
node->alpha = 0;
|
||||||
|
node->label_alpha = 0;
|
||||||
|
}
|
||||||
|
|
||||||
node->x = xmb->icon_size * dir * 2;
|
node->x = xmb->icon_size * dir * 2;
|
||||||
node->y = xmb_item_y(xmb, i, current);
|
node->y = xmb_item_y(xmb, i, current);
|
||||||
node->zoom = xmb->categories_passive_zoom;
|
node->zoom = xmb->categories_passive_zoom;
|
||||||
|
|
||||||
real_y = node->y + xmb->margins_screen_top;
|
real_y = node->y + xmb->margins_screen_top;
|
||||||
|
|
||||||
if (i == current)
|
if (i == current)
|
||||||
node->zoom = xmb->categories_active_zoom;
|
{
|
||||||
|
node->zoom = xmb->categories_active_zoom;
|
||||||
ia = xmb->items_passive_alpha;
|
ia = xmb->items_active_alpha;
|
||||||
if (i == current)
|
}
|
||||||
ia = xmb->items_active_alpha;
|
else
|
||||||
|
ia = xmb->items_passive_alpha;
|
||||||
|
|
||||||
if (real_y < -threshold || real_y > height+threshold)
|
if (real_y < -threshold || real_y > height+threshold)
|
||||||
{
|
{
|
||||||
node->alpha = node->label_alpha = ia;
|
node->alpha = node->label_alpha = ia;
|
||||||
node->x = 0;
|
node->x = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1610,9 +1617,7 @@ static void xmb_list_switch_new(xmb_handle_t *xmb,
|
|||||||
static void xmb_set_title(xmb_handle_t *xmb)
|
static void xmb_set_title(xmb_handle_t *xmb)
|
||||||
{
|
{
|
||||||
if (xmb->categories_selection_ptr <= xmb->system_tab_end)
|
if (xmb->categories_selection_ptr <= xmb->system_tab_end)
|
||||||
{
|
|
||||||
menu_entries_get_title(xmb->title_name, sizeof(xmb->title_name));
|
menu_entries_get_title(xmb->title_name, sizeof(xmb->title_name));
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const char *path = NULL;
|
const char *path = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user