From 99111c26333e37900d29481ca51c053beb6cf370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Mon, 20 Oct 2014 01:51:00 +0200 Subject: [PATCH] (XMB) Fix the offset bug in populate_entries --- frontend/menu/disp/xmb.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend/menu/disp/xmb.c b/frontend/menu/disp/xmb.c index 92eedb5f9a..9025984d78 100644 --- a/frontend/menu/disp/xmb.c +++ b/frontend/menu/disp/xmb.c @@ -397,12 +397,7 @@ static void xmb_populate_entries(void *data, const char *path, if (!xmb) return; - size_t depth = menu_list_get_stack_size(driver.menu->menu_list); - if (xmb->depth != depth) - { - xmb->old_depth = xmb->depth; - xmb->depth = depth; - } + xmb->depth = menu_list_get_stack_size(driver.menu->menu_list); if (xmb->depth != xmb->old_depth) add_tween(XMB_DELAY, xmb->x + (xmb->depth-xmb->old_depth)*-20, @@ -432,6 +427,8 @@ static void xmb_populate_entries(void *data, const char *path, node->y = xmb->vspacing * xmb->active_item_factor; } } + + xmb->old_depth = xmb->depth; } static void xmb_frame(void)