File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -348,10 +348,11 @@ pg_init(PyObject *self, PyObject *_null)
348348
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 )
351- pg_sdl_was_init = SDL_Init (SDL_INIT_EVENTTHREAD | PG_INIT_TIMER |
352- PG_INIT_NOPARACHUTE ) == 0 ;
351+ pg_sdl_was_init = PG_InitSubSystem (SDL_INIT_EVENTTHREAD | PG_INIT_TIMER |
352+ PG_INIT_NOPARACHUTE ) == 0 ;
353353#else
354- pg_sdl_was_init = SDL_Init (PG_INIT_TIMER | PG_INIT_NOPARACHUTE ) == 0 ;
354+ pg_sdl_was_init =
355+ PG_InitSubSystem (PG_INIT_TIMER | PG_INIT_NOPARACHUTE ) == 0 ;
355356#endif
356357
357358 pg_env_blend_alpha_SDL2 = SDL_getenv ("PYGAME_BLEND_ALPHA_SDL2" ) != NULL ;
You can’t perform that action at this time.
0 commit comments