From 6792e74ad584bcfe1e62b775026e9ed904f65cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Sat, 7 Nov 2015 10:36:27 +0700 Subject: [PATCH] (XMB) Prevent an animation bug during scanning --- menu/drivers/xmb.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 6f041582ce..b86b267972 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -1036,12 +1036,14 @@ static void xmb_context_reset_horizontal_list(xmb_handle_t *xmb, menu_handle_t *menu, const char *themepath) { unsigned i; - size_t list_size = xmb_list_get_size(menu, MENU_LIST_HORIZONTAL); + int depth; /* keep this integer */ + size_t list_size = xmb_list_get_size(menu, MENU_LIST_HORIZONTAL); xmb->categories.x_pos = xmb->icon.spacing.horizontal * -(float)xmb->categories.selection_ptr; - xmb->x = xmb->icon.size * -(xmb->depth*2-2); + depth = (xmb->depth > 1) ? 2 : 1; + xmb->x = xmb->icon.size * -(depth*2-2); for (i = 0; i < list_size; i++) {