mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
(xmb.c) Cleanup
This commit is contained in:
parent
d4c99a5f4e
commit
e34171b4a0
@ -576,10 +576,11 @@ static void xmb_selection_pointer_changed(bool allow_animations)
|
|||||||
size_t selection;
|
size_t selection;
|
||||||
unsigned i, end, tag, height, skip;
|
unsigned i, end, tag, height, skip;
|
||||||
int threshold = 0;
|
int threshold = 0;
|
||||||
xmb_handle_t *xmb = NULL;
|
xmb_handle_t *xmb = NULL;
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
menu_handle_t *menu = menu_driver_get_ptr();
|
||||||
menu_list_t *menu_list = menu_list_get_ptr();
|
menu_list_t *menu_list = menu_list_get_ptr();
|
||||||
settings_t *settings = config_get_ptr();
|
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr();
|
||||||
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
if (!menu)
|
if (!menu)
|
||||||
return;
|
return;
|
||||||
@ -606,8 +607,7 @@ static void xmb_selection_pointer_changed(bool allow_animations)
|
|||||||
float iy, real_iy;
|
float iy, real_iy;
|
||||||
float ia = xmb->item.passive.alpha;
|
float ia = xmb->item.passive.alpha;
|
||||||
float iz = xmb->item.passive.zoom;
|
float iz = xmb->item.passive.zoom;
|
||||||
xmb_node_t *node = (xmb_node_t*)menu_list_get_userdata_at_offset(
|
xmb_node_t *node = (xmb_node_t*)menu_list_get_userdata_at_offset(selection_buf, i);
|
||||||
menu_list->selection_buf, i);
|
|
||||||
|
|
||||||
if (!node)
|
if (!node)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user