mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
Merge pull request #1248 from forkiesassds/master
Fix SDL3 backend with latest SDL3 commits
This commit is contained in:
commit
f1cac3962c
@ -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_Y_NUMBER, SDL_WINDOWPOS_CENTERED);
|
||||||
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_WIDTH_NUMBER, width);
|
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_WIDTH_NUMBER, width);
|
||||||
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_HEIGHT_NUMBER, height);
|
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);
|
win_handle = SDL_CreateWindowWithProperties(props);
|
||||||
if (!win_handle) Window_SDLFail("creating window");
|
if (!win_handle) Window_SDLFail("creating window");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user