Fix warnings

Fix warnings reported with -Dwarning_level=2.
This commit is contained in:
Romain Vimont
2019-11-26 09:08:12 +01:00
parent 6abb8fd0cd
commit 31d9d56117
3 changed files with 8 additions and 6 deletions

View File

@@ -185,8 +185,8 @@ screen_init_rendering(struct screen *screen, const char *window_title,
window_flags |= SDL_WINDOW_BORDERLESS;
}
int x = window_x != -1 ? window_x : SDL_WINDOWPOS_UNDEFINED;
int y = window_y != -1 ? window_y : SDL_WINDOWPOS_UNDEFINED;
int x = window_x != -1 ? window_x : (int) SDL_WINDOWPOS_UNDEFINED;
int y = window_y != -1 ? window_y : (int) SDL_WINDOWPOS_UNDEFINED;
screen->window = SDL_CreateWindow(window_title, x, y,
window_size.width, window_size.height,
window_flags);