mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
Merge pull request #1754 from heuripedes/master
(GLUI) Turn y into an int in glui_render_menu_list
This commit is contained in:
commit
b3babbb23f
@ -297,10 +297,9 @@ static void glui_render_menu_list(glui_handle_t *glui,
|
||||
char message[PATH_MAX_LENGTH],
|
||||
entry_title_buf[PATH_MAX_LENGTH], type_str_buf[PATH_MAX_LENGTH];
|
||||
bool entry_selected;
|
||||
unsigned y = menu->header_height - menu->scroll_y + (glui->line_height * i);
|
||||
int max_visible_entries = ((y + glui->line_height));
|
||||
int y = menu->header_height - menu->scroll_y + (glui->line_height * i);
|
||||
|
||||
if (y > height || (max_visible_entries < 0))
|
||||
if (y > height || ((y + (int)glui->line_height) < 0))
|
||||
continue;
|
||||
|
||||
entry_selected = menu_entry_is_currently_selected(i);
|
||||
|
Loading…
x
Reference in New Issue
Block a user