From cfe57b8442f20afcd159f5ccc6e1ff531a61ebb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Mon, 22 Jun 2015 14:49:56 -0300 Subject: [PATCH] (Menu) Fix some menu_entries_get_start() checks --- menu/drivers/glui.c | 2 +- menu/drivers/xmb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/menu/drivers/glui.c b/menu/drivers/glui.c index 01239a3eb7..33a9ba2b13 100644 --- a/menu/drivers/glui.c +++ b/menu/drivers/glui.c @@ -673,7 +673,7 @@ static void glui_navigation_set(bool scroll) else menu_entries_set_start(end - num_lines); - if (menu_entries_get_start() > 5) + if (menu_entries_get_start() >= 5) menu_entries_set_start(menu_entries_get_start() - 5); } diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index ade71a44c9..bd02ea9446 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -1348,7 +1348,7 @@ static void xmb_render(void) } } - if (menu_entries_get_start() > 5) + if (menu_entries_get_start() >= 5) menu_entries_set_start(menu_entries_get_start() - 5); anim->is_active = false;