Merge pull request #2323 from lakkatv/material

(GLUI) Fix a display bug on switches
This commit is contained in:
Twinaphex 2015-11-01 16:26:38 +01:00
commit a752a24f98
1 changed files with 2 additions and 1 deletions

View File

@ -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);