Skip to content

Commit

Permalink
(xmb) Skip drawing the fading list when it is already transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
heuripedes committed Aug 19, 2017
1 parent 1d32d74 commit aaecf82
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions menu/drivers/xmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2265,7 +2265,15 @@ static void xmb_draw_items(
menu_entries_ctl(MENU_ENTRIES_CTL_START_GET, &i);

if (list == xmb->selection_buf_old)
{
xmb_node_t *node = (xmb_node_t*)
menu_entries_get_userdata_at_offset(list, current);

if ((uint8_t)(255 * node->alpha) == 0)
return;

i = 0;
}

first = i;
last = end - 1;
Expand Down

0 comments on commit aaecf82

Please sign in to comment.