Deprecate SDL_INIT_EVERYTHING from SDL2

Adds SDL_INIT_EVERYTHING to the deprecated symbol list, and renames an internal usage to avoid a warning.
This commit is contained in:
Frank Praznik
2026-03-03 14:00:40 -05:00
parent d3672b0c3a
commit e7199cad0b
2 changed files with 4 additions and 3 deletions

View File

@@ -65,7 +65,7 @@
#include "core/android/SDL_android.h"
#endif
#define SDL_INIT_EVERYTHING ~0U
#define SDL_ALL_SUBSYSTEM_FLAGS ~0U
// Initialization/Cleanup routines
#include "timer/SDL_timer_c.h"
@@ -682,7 +682,7 @@ Uint32 SDL_WasInit(SDL_InitFlags flags)
}
if (!flags) {
flags = SDL_INIT_EVERYTHING;
flags = SDL_ALL_SUBSYSTEM_FLAGS;
}
num_subsystems = SDL_min(num_subsystems, SDL_MostSignificantBitIndex32(flags) + 1);
@@ -707,7 +707,7 @@ void SDL_Quit(void)
#ifdef SDL_PLATFORM_WINDOWS
SDL_HelperWindowDestroy();
#endif
SDL_QuitSubSystem(SDL_INIT_EVERYTHING);
SDL_QuitSubSystem(SDL_ALL_SUBSYSTEM_FLAGS);
SDL_CleanupTrays();
#ifdef SDL_USE_LIBDBUS