From a90748492517a10be028767fb6ebafab171e02d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Fri, 16 Jan 2015 10:54:14 +0100 Subject: [PATCH] (XMB) Improve mali bug workaround, now seem to cover all case --- menu/drivers_display/lakka.c | 2 +- menu/drivers_display/xmb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/menu/drivers_display/lakka.c b/menu/drivers_display/lakka.c index 7a26a59d13..575915cdda 100644 --- a/menu/drivers_display/lakka.c +++ b/menu/drivers_display/lakka.c @@ -217,7 +217,7 @@ static void lakka_draw_icon(lakka_handle_t *lakka, if (!gl) return; - if (x < -lakka->icon_size || x > gl->win_width + if (x < -lakka->icon_size/2 || x > gl->win_width || y < lakka->icon_size/2 || y > gl->win_height + lakka->icon_size) return; diff --git a/menu/drivers_display/xmb.c b/menu/drivers_display/xmb.c index 6825622586..904d7419bd 100644 --- a/menu/drivers_display/xmb.c +++ b/menu/drivers_display/xmb.c @@ -196,7 +196,7 @@ static void xmb_draw_icon(GLuint texture, float x, float y, if (!gl) return; - if (x < -xmb->icon_size || x > gl->win_width + if (x < -xmb->icon_size/2 || x > gl->win_width || y < xmb->icon_size/2 || y > gl->win_height + xmb->icon_size) return;