mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-12 05:40:36 +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)
|
||||
continue;
|
||||
|
||||
iy = xmb->vspacing;
|
||||
|
||||
if (i < current)
|
||||
if (xmb->depth > 1)
|
||||
iy = xmb->vspacing * (i - (int)current + xmb->above_subitem_offset);
|
||||
iy *= (i - (int)current + xmb->above_subitem_offset);
|
||||
else
|
||||
iy = xmb->vspacing * (i - (int)current + xmb->above_item_offset);
|
||||
iy *= (i - (int)current + xmb->above_item_offset);
|
||||
else
|
||||
iy = xmb->vspacing * (i - (int)current + xmb->under_item_offset);
|
||||
iy *= (i - (int)current + xmb->under_item_offset);
|
||||
|
||||
if (i == current)
|
||||
{
|
||||
@ -527,13 +529,14 @@ static void xmb_list_open_new(file_list_t *list, int dir, size_t current)
|
||||
//else
|
||||
// node->x = xmb->icon_size*dir;
|
||||
|
||||
iy = xmb->vspacing;
|
||||
if (i < current)
|
||||
if (xmb->depth > 1)
|
||||
iy = xmb->vspacing * (i - (int)current + xmb->above_subitem_offset);
|
||||
iy *= (i - (int)current + xmb->above_subitem_offset);
|
||||
else
|
||||
iy = xmb->vspacing * (i - (int)current + xmb->above_item_offset);
|
||||
iy *= (i - (int)current + xmb->above_item_offset);
|
||||
else
|
||||
iy = xmb->vspacing * (i - (int)current + xmb->under_item_offset);
|
||||
iy *= (i - (int)current + xmb->under_item_offset);
|
||||
|
||||
if (i == current)
|
||||
iy = xmb->vspacing * xmb->active_item_factor;
|
||||
|
Loading…
x
Reference in New Issue
Block a user