From f6d5a5a2a42f4c88aced8cb988cf687a3e8fbf31 Mon Sep 17 00:00:00 2001 From: forkiesassds Date: Mon, 19 Aug 2024 23:06:03 +0300 Subject: [PATCH] Fix SDL3 backend with latest SDL3 commits They have changed flags property from `"flags"` to `SDL_PROP_WINDOW_CREATE_FLAGS_NUMBER` causing window flags to never be set which causes the window to not be resizeable and ClassiCube not launching. --- src/Window_SDL3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Window_SDL3.c b/src/Window_SDL3.c index 15d40a3fa..d34c9f67e 100644 --- a/src/Window_SDL3.c +++ b/src/Window_SDL3.c @@ -68,7 +68,7 @@ static void DoCreateWindow(int width, int height, int flags) { SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_Y_NUMBER, SDL_WINDOWPOS_CENTERED); SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_WIDTH_NUMBER, width); SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_HEIGHT_NUMBER, height); - SDL_SetNumberProperty(props, "flags", flags | SDL_WINDOW_RESIZABLE); + SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_FLAGS_NUMBER, flags | SDL_WINDOW_RESIZABLE); win_handle = SDL_CreateWindowWithProperties(props); if (!win_handle) Window_SDLFail("creating window");