mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 03:39:59 +00:00
ozone: fix horizontal animation direction
This commit is contained in:
parent
9a15354314
commit
1a575dec7a
@ -539,7 +539,6 @@ typedef struct ozone_handle
|
||||
|
||||
file_list_t *selection_buf_old;
|
||||
|
||||
unsigned action;
|
||||
bool draw_old_list;
|
||||
float scroll_old;
|
||||
|
||||
@ -2814,10 +2813,12 @@ static void ozone_populate_entries(void *data, const char *path, const char *lab
|
||||
}
|
||||
|
||||
ozone->need_compute = true;
|
||||
ozone->fade_direction = ozone->action == MENU_ACTION_CANCEL;
|
||||
|
||||
ozone->depth = (int)ozone_list_get_size(ozone, MENU_LIST_PLAIN);
|
||||
|
||||
|
||||
int new_depth = (int)ozone_list_get_size(ozone, MENU_LIST_PLAIN);
|
||||
|
||||
ozone->fade_direction = new_depth <= ozone->depth;
|
||||
ozone->depth = new_depth;
|
||||
|
||||
if (ozone->categories_selection_ptr == ozone->categories_active_idx_old)
|
||||
{
|
||||
ozone_list_open(ozone);
|
||||
@ -3045,8 +3046,6 @@ static int ozone_menu_iterate(menu_handle_t *menu, void *userdata, enum menu_act
|
||||
break;
|
||||
}
|
||||
|
||||
ozone->action = new_action;
|
||||
|
||||
return generic_menu_iterate(menu, userdata, new_action);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user