From 30bad3fcf0892561a2b38d3f1f699f882b23cd7c Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 29 Oct 2023 00:19:41 +0300 Subject: [PATCH 25/25] sdl3: Update SDL_CreateWindow() call sdl3 has dropped window position parameters from the function. See osdn #48912 Signed-off-by: Marko Lindqvist --- client/gui-sdl3/graphics.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/gui-sdl3/graphics.c b/client/gui-sdl3/graphics.c index 05cd2f9bed..e275c978da 100644 --- a/client/gui-sdl3/graphics.c +++ b/client/gui-sdl3/graphics.c @@ -612,10 +612,7 @@ void quit_sdl(void) bool set_video_mode(unsigned width, unsigned height, unsigned flags_in) { main_data.screen = SDL_CreateWindow(_("SDL3 Client for Freeciv"), - SDL_WINDOWPOS_UNDEFINED, - SDL_WINDOWPOS_UNDEFINED, - width, height, - 0); + width, height, 0); if (main_data.screen == NULL) { log_fatal(_("Failed to create main window: %s"), SDL_GetError()); -- 2.42.0