SDL_SetWindowFullscreen() now takes a boolean value

Sam Lantinga 2023-02-16 17:28:35 -08:00
parent 6c04c6f090
commit 64b88115ec
1 changed files with 1 additions and 1 deletions

View File

@ -1578,7 +1578,7 @@ static void SDL_FinishWindowCreation(SDL_Window *window, Uint32 flags)
SDL_MinimizeWindow(window); SDL_MinimizeWindow(window);
} }
if (flags & SDL_WINDOW_FULLSCREEN) { if (flags & SDL_WINDOW_FULLSCREEN) {
SDL_SetWindowFullscreen(window, flags); SDL_SetWindowFullscreen(window, SDL_TRUE);
} }
if (flags & SDL_WINDOW_MOUSE_GRABBED) { if (flags & SDL_WINDOW_MOUSE_GRABBED) {
/* We must specifically call SDL_SetWindowGrab() and not /* We must specifically call SDL_SetWindowGrab() and not