(GLUI) Fix a display bug on switches

This commit is contained in:
Jean-André Santoni 2015-11-01 22:20:49 +07:00
parent 8411cc75a0
commit 81d4d9f046

View File

@ -561,7 +561,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);