mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
(XMB) Some cleanups
This commit is contained in:
parent
ac40105929
commit
8971f4538a
@ -449,13 +449,15 @@ static void xmb_selection_pointer_changed(void)
|
|||||||
if (!node)
|
if (!node)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
iy = xmb->vspacing;
|
||||||
|
|
||||||
if (i < current)
|
if (i < current)
|
||||||
if (xmb->depth > 1)
|
if (xmb->depth > 1)
|
||||||
iy = xmb->vspacing * (i - (int)current + xmb->above_subitem_offset);
|
iy *= (i - (int)current + xmb->above_subitem_offset);
|
||||||
else
|
else
|
||||||
iy = xmb->vspacing * (i - (int)current + xmb->above_item_offset);
|
iy *= (i - (int)current + xmb->above_item_offset);
|
||||||
else
|
else
|
||||||
iy = xmb->vspacing * (i - (int)current + xmb->under_item_offset);
|
iy *= (i - (int)current + xmb->under_item_offset);
|
||||||
|
|
||||||
if (i == current)
|
if (i == current)
|
||||||
{
|
{
|
||||||
@ -527,13 +529,14 @@ static void xmb_list_open_new(file_list_t *list, int dir, size_t current)
|
|||||||
//else
|
//else
|
||||||
// node->x = xmb->icon_size*dir;
|
// node->x = xmb->icon_size*dir;
|
||||||
|
|
||||||
|
iy = xmb->vspacing;
|
||||||
if (i < current)
|
if (i < current)
|
||||||
if (xmb->depth > 1)
|
if (xmb->depth > 1)
|
||||||
iy = xmb->vspacing * (i - (int)current + xmb->above_subitem_offset);
|
iy *= (i - (int)current + xmb->above_subitem_offset);
|
||||||
else
|
else
|
||||||
iy = xmb->vspacing * (i - (int)current + xmb->above_item_offset);
|
iy *= (i - (int)current + xmb->above_item_offset);
|
||||||
else
|
else
|
||||||
iy = xmb->vspacing * (i - (int)current + xmb->under_item_offset);
|
iy *= (i - (int)current + xmb->under_item_offset);
|
||||||
|
|
||||||
if (i == current)
|
if (i == current)
|
||||||
iy = xmb->vspacing * xmb->active_item_factor;
|
iy = xmb->vspacing * xmb->active_item_factor;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user