File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ static PyObject *pgExc_BufferError = NULL;
7878/* Only one instance of the state per process. */
7979static PyObject * pg_quit_functions = NULL ;
8080static int pg_is_init = 0 ;
81- static int pg_sdl_was_init = 0 ;
81+ static bool pg_sdl_was_init = 0 ;
8282SDL_Window * pg_default_window = NULL ;
8383pgSurfaceObject * pg_default_screen = NULL ;
8484static int pg_env_blend_alpha_SDL2 = 0 ;
@@ -349,10 +349,9 @@ pg_init(PyObject *self, PyObject *_null)
349349 /*nice to initialize timer, so startup time will reflec pg_init() time*/
350350#if defined(WITH_THREAD ) && !defined(MS_WIN32 ) && defined(SDL_INIT_EVENTTHREAD )
351351 pg_sdl_was_init = PG_InitSubSystem (SDL_INIT_EVENTTHREAD | PG_INIT_TIMER |
352- PG_INIT_NOPARACHUTE ) == 0 ;
352+ PG_INIT_NOPARACHUTE );
353353#else
354- pg_sdl_was_init =
355- PG_InitSubSystem (PG_INIT_TIMER | PG_INIT_NOPARACHUTE ) == 0 ;
354+ pg_sdl_was_init = PG_InitSubSystem (PG_INIT_TIMER | PG_INIT_NOPARACHUTE );
356355#endif
357356
358357 pg_env_blend_alpha_SDL2 = SDL_getenv ("PYGAME_BLEND_ALPHA_SDL2" ) != NULL ;
@@ -383,7 +382,7 @@ pg_atexit_quit(void)
383382 successful SDL_Init.
384383 */
385384 if (pg_sdl_was_init ) {
386- pg_sdl_was_init = 0 ;
385+ pg_sdl_was_init = false ;
387386 SDL_Quit ();
388387 }
389388}
You can’t perform that action at this time.
0 commit comments