From 36eaf74a2eddda89257f2f72628a9147005af50e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Mon, 2 Jun 2014 21:14:53 +0200 Subject: [PATCH] (Lakka) Fix a performance issue in lakka_frame when displaying a submenu --- frontend/menu/disp/lakka.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/frontend/menu/disp/lakka.c b/frontend/menu/disp/lakka.c index c7a35cd4aa..ff58072d32 100644 --- a/frontend/menu/disp/lakka.c +++ b/frontend/menu/disp/lakka.c @@ -890,13 +890,11 @@ static void lakka_frame(void) } else { - lakka_draw_icon(gl, - arrow_icon, - 156 + (HSPACING*(i+1)) + all_categories_x + 150 +-dim/2.0, - 300 + item->y + dim/2.0, - item->alpha, - 0, - item->zoom); + if (i == menu_active_category && j == active_category->active_item) + lakka_draw_icon(gl, + arrow_icon, + 156 + HSPACING * (i+1) + all_categories_x + 150 +-dim/2.0, + 300 + item->y + dim/2.0, 1, 0, I_ACTIVE_ZOOM); } }