mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Use SDL_InitFlags for the SDL_Init* function implementations
This commit is contained in:
@@ -215,7 +215,7 @@ static void SDL_QuitMainThread(void)
|
|||||||
SDL_main_thread_initialized = SDL_FALSE;
|
SDL_main_thread_initialized = SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
int SDL_InitSubSystem(Uint32 flags)
|
int SDL_InitSubSystem(SDL_InitFlags flags)
|
||||||
{
|
{
|
||||||
Uint32 flags_initialized = 0;
|
Uint32 flags_initialized = 0;
|
||||||
|
|
||||||
@@ -431,12 +431,12 @@ quit_and_error:
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int SDL_Init(Uint32 flags)
|
int SDL_Init(SDL_InitFlags flags)
|
||||||
{
|
{
|
||||||
return SDL_InitSubSystem(flags);
|
return SDL_InitSubSystem(flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDL_QuitSubSystem(Uint32 flags)
|
void SDL_QuitSubSystem(SDL_InitFlags flags)
|
||||||
{
|
{
|
||||||
/* Shut down requested initialized subsystems */
|
/* Shut down requested initialized subsystems */
|
||||||
|
|
||||||
@@ -527,7 +527,7 @@ void SDL_QuitSubSystem(Uint32 flags)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Uint32 SDL_WasInit(Uint32 flags)
|
Uint32 SDL_WasInit(SDL_InitFlags flags)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int num_subsystems = SDL_arraysize(SDL_SubsystemRefCount);
|
int num_subsystems = SDL_arraysize(SDL_SubsystemRefCount);
|
||||||
|
Reference in New Issue
Block a user