Merge pull request #1248 from forkiesassds/master

Fix SDL3 backend with latest SDL3 commits
This commit is contained in:
UnknownShadow200 2024-08-20 07:18:56 +10:00 committed by GitHub
commit f1cac3962c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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");