From 8172a0ff59de1e8892c4ea03a55c71d5d15b395a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Sat, 13 Sep 2014 04:28:01 +0200 Subject: [PATCH] (GLUI) Fix missing quit entry --- frontend/menu/disp/glui.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/menu/disp/glui.c b/frontend/menu/disp/glui.c index df028af322..c5afe962d5 100644 --- a/frontend/menu/disp/glui.c +++ b/frontend/menu/disp/glui.c @@ -115,7 +115,7 @@ static void glui_frame(void) begin = driver.menu->selection_ptr - glui_term_height / 2; end = (driver.menu->selection_ptr + glui_term_height <= file_list_get_size(driver.menu->selection_buf)) ? - driver.menu->selection_ptr + glui_term_height : + driver.menu->selection_ptr + glui_term_height - 1 : file_list_get_size(driver.menu->selection_buf); /* Do not scroll if all items are visible. */ @@ -125,8 +125,6 @@ static void glui_frame(void) if (end - begin > glui_term_height) end = begin + glui_term_height; - end -= 1; - glui_render_background(); char title[256];