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)
348
348
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
- 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 ;
353
353
#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 ;
355
356
#endif
356
357
357
358
pg_env_blend_alpha_SDL2 = SDL_getenv ("PYGAME_BLEND_ALPHA_SDL2" ) != NULL ;
You can’t perform that action at this time.
0 commit comments