From 5ae64becbdc0c951159b7890033706ca474f7b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Mon, 22 Jun 2015 18:00:05 -0300 Subject: [PATCH] (GLUI) Fix pagination rendering --- menu/drivers/glui.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/menu/drivers/glui.c b/menu/drivers/glui.c index 33a9ba2b13..d8f192e673 100644 --- a/menu/drivers/glui.c +++ b/menu/drivers/glui.c @@ -271,6 +271,9 @@ static void glui_render(void) / glui->line_height; } + if (menu_entries_get_end() < height / glui->line_height) + menu_entries_set_start(0); + if (menu->scroll_y < 0) menu->scroll_y = 0;