@@ -279,7 +279,7 @@ pg_get_init(PyObject *self, PyObject *_null)
279
279
static PyObject *
280
280
pg_get_active (PyObject * self , PyObject * _null )
281
281
{
282
- Uint32 flags = SDL_GetWindowFlags (pg_GetDefaultWindow ());
282
+ SDL_WindowFlags flags = SDL_GetWindowFlags (pg_GetDefaultWindow ());
283
283
284
284
#if SDL_VERSION_ATLEAST (3 , 0 , 0 )
285
285
return PyBool_FromLong (!(flags & SDL_WINDOW_HIDDEN ) &&
@@ -2799,7 +2799,7 @@ static PyObject *
2799
2799
pg_is_fullscreen (PyObject * self , PyObject * _null )
2800
2800
{
2801
2801
SDL_Window * win = pg_GetDefaultWindow ();
2802
- int flags ;
2802
+ SDL_WindowFlags flags ;
2803
2803
2804
2804
VIDEO_INIT_CHECK ();
2805
2805
if (!win ) {
@@ -3033,7 +3033,8 @@ static PyObject *
3033
3033
pg_toggle_fullscreen (PyObject * self , PyObject * _null )
3034
3034
{
3035
3035
SDL_Window * win = pg_GetDefaultWindow ();
3036
- int result , flags ;
3036
+ int result ;
3037
+ SDL_WindowFlags flags ;
3037
3038
int window_w , window_h , w , h , window_display , x , y ;
3038
3039
pgSurfaceObject * display_surface ;
3039
3040
_DisplayState * state = DISPLAY_MOD_STATE (self );
@@ -3473,7 +3474,7 @@ pg_display_resize_event(PyObject *self, PyObject *event)
3473
3474
int wnew = PyLong_AsLong (PyObject_GetAttrString (event , "w" ));
3474
3475
int hnew = PyLong_AsLong (PyObject_GetAttrString (event , "h" ));
3475
3476
SDL_Window * win = pg_GetDefaultWindow ();
3476
- int flags ;
3477
+ SDL_WindowFlags flags ;
3477
3478
int w , h , result ;
3478
3479
_DisplayState * state = DISPLAY_MOD_STATE (self );
3479
3480
GL_glViewport_Func p_glViewport = NULL ;
0 commit comments