diff --git a/menu/drivers/glui.c b/menu/drivers/glui.c index b2362c469e..e70a13cde7 100644 --- a/menu/drivers/glui.c +++ b/menu/drivers/glui.c @@ -557,7 +557,8 @@ static void glui_render_menu_list(glui_handle_t *glui, gl_t *gl, y = header_height - menu->scroll_y + (glui->line_height * i); - if (y > (int)height || ((y + (int)glui->line_height) < 0)) + if ((y - (int)glui->line_height) > (int)height + || ((y + (int)glui->line_height) < 0)) continue; menu_entry_get(&entry, 0, i, NULL, true);