mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 10:20:41 +00:00
Merge pull request #1169 from lakkatv/xmb
(XMB) Fix the offset bug in populate_entries
This commit is contained in:
commit
2861945ab4
@ -397,12 +397,7 @@ static void xmb_populate_entries(void *data, const char *path,
|
|||||||
if (!xmb)
|
if (!xmb)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
size_t depth = menu_list_get_stack_size(driver.menu->menu_list);
|
xmb->depth = menu_list_get_stack_size(driver.menu->menu_list);
|
||||||
if (xmb->depth != depth)
|
|
||||||
{
|
|
||||||
xmb->old_depth = xmb->depth;
|
|
||||||
xmb->depth = depth;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (xmb->depth != xmb->old_depth)
|
if (xmb->depth != xmb->old_depth)
|
||||||
add_tween(XMB_DELAY, xmb->x + (xmb->depth-xmb->old_depth)*-20,
|
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;
|
node->y = xmb->vspacing * xmb->active_item_factor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
xmb->old_depth = xmb->depth;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void xmb_frame(void)
|
static void xmb_frame(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user