mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
ozone: fix tabs wrapping, again
This commit is contained in:
parent
c00d3e809a
commit
d7be8c4cf2
@ -2687,7 +2687,7 @@ static int ozone_menu_iterate(menu_handle_t *menu, void *userdata, enum menu_act
|
|||||||
|
|
||||||
new_selection = (ozone->categories_selection_ptr + 1);
|
new_selection = (ozone->categories_selection_ptr + 1);
|
||||||
|
|
||||||
if (new_selection > ozone->system_tab_end) /* TODO Check against actual tabs count and not just system tabs */
|
if (new_selection >= OZONE_SYSTEM_TAB_LAST) /* TODO Check against actual tabs count and not just system tabs */
|
||||||
new_selection = 0;
|
new_selection = 0;
|
||||||
|
|
||||||
if (ozone->categories_selection_ptr != new_selection)
|
if (ozone->categories_selection_ptr != new_selection)
|
||||||
@ -2726,7 +2726,7 @@ static int ozone_menu_iterate(menu_handle_t *menu, void *userdata, enum menu_act
|
|||||||
new_selection = ozone->categories_selection_ptr - 1;
|
new_selection = ozone->categories_selection_ptr - 1;
|
||||||
|
|
||||||
if (new_selection < 0)
|
if (new_selection < 0)
|
||||||
new_selection = ozone->system_tab_end; /* TODO Set this to actual tabs count and not just system tabs */
|
new_selection = OZONE_SYSTEM_TAB_LAST-1; /* TODO Set this to actual tabs count and not just system tabs */
|
||||||
|
|
||||||
if (ozone->categories_selection_ptr != new_selection)
|
if (ozone->categories_selection_ptr != new_selection)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user