From d7be8c4cf22abfea3f7184c9773ad179e47268fe Mon Sep 17 00:00:00 2001 From: natinusala Date: Sat, 27 Oct 2018 17:25:13 +0200 Subject: [PATCH] ozone: fix tabs wrapping, again --- menu/drivers/ozone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu/drivers/ozone.c b/menu/drivers/ozone.c index e25d2606bb..52366b3214 100644 --- a/menu/drivers/ozone.c +++ b/menu/drivers/ozone.c @@ -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); - 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; 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; 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) {