mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
(Menu) Cleanup warnings in CXX_BUILD mode
This commit is contained in:
parent
46c99bd225
commit
c74631e2c7
@ -317,7 +317,7 @@ static void glui_render_menu_list(glui_handle_t *glui,
|
||||
char type_str_buf[PATH_MAX_LENGTH];
|
||||
int y = disp->header_height - menu->scroll_y + (glui->line_height * i);
|
||||
|
||||
if (y > height || ((y + (int)glui->line_height) < 0))
|
||||
if (y > (int)height || ((y + (int)glui->line_height) < 0))
|
||||
continue;
|
||||
|
||||
entry_path[0] = '\0';
|
||||
@ -645,7 +645,7 @@ static float glui_get_scroll(void)
|
||||
glui = (glui_handle_t*)menu->userdata;
|
||||
half = (height / glui->line_height) / 2;
|
||||
|
||||
if (nav->selection_ptr < half)
|
||||
if (nav->selection_ptr < (unsigned)half)
|
||||
return 0;
|
||||
return ((nav->selection_ptr + 2 - half) * glui->line_height);
|
||||
}
|
||||
|
@ -451,7 +451,7 @@ static void rgui_render(void)
|
||||
menu_entries_set_start(0);;
|
||||
|
||||
bottom = menu_entries_get_end() - RGUI_TERM_HEIGHT;
|
||||
if (menu_entries_get_start() > bottom)
|
||||
if (menu_entries_get_start() > (unsigned)bottom)
|
||||
menu_entries_set_start(bottom);
|
||||
|
||||
end = ((menu_entries_get_start() + RGUI_TERM_HEIGHT) <= (menu_entries_get_end())) ?
|
||||
|
Loading…
x
Reference in New Issue
Block a user