Explorar o código

Fix mismatch between Init and Quit

Init says that audio implies events (line 195), Quit was missing the implication.
Jasper Hugunin %!s(int64=2) %!d(string=hai) anos
pai
achega
27ee8c8e14
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/SDL.c

+ 3 - 0
src/SDL.c

@@ -407,6 +407,9 @@ SDL_QuitSubSystem(Uint32 flags)
 
 #if !SDL_AUDIO_DISABLED
     if ((flags & SDL_INIT_AUDIO)) {
+        /* audio implies events */
+        flags |= SDL_INIT_EVENTS;
+
         if (SDL_PrivateShouldQuitSubsystem(SDL_INIT_AUDIO)) {
             SDL_AudioQuit();
         }