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;
78
78
/* Only one instance of the state per process. */
79
79
static PyObject * pg_quit_functions = NULL ;
80
80
static int pg_is_init = 0 ;
81
- static int pg_sdl_was_init = 0 ;
81
+ static bool pg_sdl_was_init = 0 ;
82
82
SDL_Window * pg_default_window = NULL ;
83
83
pgSurfaceObject * pg_default_screen = NULL ;
84
84
static int pg_env_blend_alpha_SDL2 = 0 ;
@@ -349,10 +349,9 @@ pg_init(PyObject *self, PyObject *_null)
349
349
/*nice to initialize timer, so startup time will reflec pg_init() time*/
350
350
#if defined(WITH_THREAD ) && !defined(MS_WIN32 ) && defined(SDL_INIT_EVENTTHREAD )
351
351
pg_sdl_was_init = PG_InitSubSystem (SDL_INIT_EVENTTHREAD | PG_INIT_TIMER |
352
- PG_INIT_NOPARACHUTE ) == 0 ;
352
+ PG_INIT_NOPARACHUTE );
353
353
#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 );
356
355
#endif
357
356
358
357
pg_env_blend_alpha_SDL2 = SDL_getenv ("PYGAME_BLEND_ALPHA_SDL2" ) != NULL ;
@@ -383,7 +382,7 @@ pg_atexit_quit(void)
383
382
successful SDL_Init.
384
383
*/
385
384
if (pg_sdl_was_init ) {
386
- pg_sdl_was_init = 0 ;
385
+ pg_sdl_was_init = false ;
387
386
SDL_Quit ();
388
387
}
389
388
}
You can’t perform that action at this time.
0 commit comments