From 6bc5cd302aae341bcd6cd4daf969709cc96c9f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Sat, 19 Aug 2017 11:01:27 -0300 Subject: [PATCH] (xmb) Comment out visible item calculation in xmb_draw_items() Fixes a regression where fading animations didn't render if you were far into the previous list. This happened because "current" has an incorrect value thanks to a menu_navigation_set_selection(0) call in menu_cbs_left.c:162 --- menu/drivers/xmb.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index cb092714ed..4c1941fa6b 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -2278,7 +2278,7 @@ static void xmb_draw_items( first = i; last = end - 1; - xmb_calculate_visible_range(xmb, height, end, current, &first, &last); + /* xmb_calculate_visible_range(xmb, height, end, current, &first, &last); */ menu_display_blend_begin(); @@ -2315,6 +2315,12 @@ static void xmb_draw_items( icon_y = xmb->margins.screen.top + node->y + half_size; + if (icon_y < half_size) + continue; + + if (icon_y > height + xmb->icon.size) + break; + icon_x = node->x + xmb->margins.screen.left + xmb->icon.spacing.horizontal - half_size;