sdl2-compat: fix SDL_SetWindowFullscreen

From b0ae500c7d16c1cd680559a70671700a38006563 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 8 Feb 2023 12:55:00 +0300
Subject: [PATCH] fix SDL_SetWindowFullscreen

---
 src/sdl2_compat.c | 4 ++--
 src/sdl3_syms.h   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index e15199f..a8af310 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -4107,7 +4107,7 @@ SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
 DECLSPEC int SDLCALL
 SDL_SetWindowFullscreen(SDL_Window *window, Uint32 flags)
 {
-    int flags3 = SDL_FALSE;
+    SDL_bool flags3 = SDL_FALSE;
 
     if (flags & SDL2_WINDOW_FULLSCREEN_DESKTOP) {
         flags3 = SDL_TRUE;
@@ -4119,7 +4119,6 @@ SDL_SetWindowFullscreen(SDL_Window *window, Uint32 flags)
     return SDL3_SetWindowFullscreen(window, flags3);
 }
 
-
 DECLSPEC void SDLCALL
 SDL_SetWindowTitle(SDL_Window *window, const char *title)
 {
@@ -4353,6 +4352,7 @@ SDL_GL_DeleteContext(SDL_GLContext context)
 {
     SDL3_GL_DeleteContext(context);
 }
+
 /* SDL3 added a return value. We just throw it away for SDL2. */
 DECLSPEC void SDLCALL
 SDL_GL_SwapWindow(SDL_Window *window)
diff --git a/src/sdl3_syms.h b/src/sdl3_syms.h
index c863b14..3a4e615 100644
--- a/src/sdl3_syms.h
+++ b/src/sdl3_syms.h
@@ -508,7 +508,7 @@ SDL3_SYM(int,RaiseWindow,(SDL_Window *a),(a),return)
 SDL3_SYM(int,MaximizeWindow,(SDL_Window *a),(a),return)
 SDL3_SYM(int,MinimizeWindow,(SDL_Window *a),(a),return)
 SDL3_SYM(int,RestoreWindow,(SDL_Window *a),(a),return)
-SDL3_SYM(int,SetWindowFullscreen,(SDL_Window *a, Uint32 b),(a,b),return)
+SDL3_SYM(int,SetWindowFullscreen,(SDL_Window *a, SDL_bool b),(a,b),return)
 SDL3_SYM_PASSTHROUGH(SDL_Surface*,GetWindowSurface,(SDL_Window *a),(a),return)
 SDL3_SYM_PASSTHROUGH(int,UpdateWindowSurface,(SDL_Window *a),(a),return)
 SDL3_SYM_PASSTHROUGH(int,UpdateWindowSurfaceRects,(SDL_Window *a, const SDL_Rect *b, int c),(a,b,c),return)