mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Fix mismatch between Init and Quit
Init says that audio implies events (line 195), Quit was missing the implication.
This commit is contained in:
parent
33a430056f
commit
27ee8c8e14
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue