Lines Matching refs:flags
65 int SDL_InitSubSystem(Uint32 flags) in SDL_InitSubSystem() argument
73 if ( (flags & SDL_INIT_TIMER) && !(SDL_initialized & SDL_INIT_TIMER) ) { in SDL_InitSubSystem()
80 if ( flags & SDL_INIT_TIMER ) { in SDL_InitSubSystem()
88 if ( (flags & SDL_INIT_VIDEO) && !(SDL_initialized & SDL_INIT_VIDEO) ) { in SDL_InitSubSystem()
90 (flags&SDL_INIT_EVENTTHREAD)) < 0 ) { in SDL_InitSubSystem()
96 if ( flags & SDL_INIT_VIDEO ) { in SDL_InitSubSystem()
104 if ( (flags & SDL_INIT_AUDIO) && !(SDL_initialized & SDL_INIT_AUDIO) ) { in SDL_InitSubSystem()
111 if ( flags & SDL_INIT_AUDIO ) { in SDL_InitSubSystem()
119 if ( (flags & SDL_INIT_JOYSTICK) && in SDL_InitSubSystem()
127 if ( flags & SDL_INIT_JOYSTICK ) { in SDL_InitSubSystem()
135 if ( (flags & SDL_INIT_CDROM) && !(SDL_initialized & SDL_INIT_CDROM) ) { in SDL_InitSubSystem()
142 if ( flags & SDL_INIT_CDROM ) { in SDL_InitSubSystem()
150 int SDL_Init(Uint32 flags) in SDL_Init() argument
162 if ( SDL_InitSubSystem(flags) < 0 ) { in SDL_Init()
167 if ( !(flags & SDL_INIT_NOPARACHUTE) ) { in SDL_Init()
173 void SDL_QuitSubSystem(Uint32 flags) in SDL_QuitSubSystem() argument
177 if ( (flags & SDL_initialized & SDL_INIT_CDROM) ) { in SDL_QuitSubSystem()
183 if ( (flags & SDL_initialized & SDL_INIT_JOYSTICK) ) { in SDL_QuitSubSystem()
189 if ( (flags & SDL_initialized & SDL_INIT_AUDIO) ) { in SDL_QuitSubSystem()
195 if ( (flags & SDL_initialized & SDL_INIT_VIDEO) ) { in SDL_QuitSubSystem()
201 if ( (flags & SDL_initialized & SDL_INIT_TIMER) ) { in SDL_QuitSubSystem()
208 Uint32 SDL_WasInit(Uint32 flags) in SDL_WasInit() argument
210 if ( ! flags ) { in SDL_WasInit()
211 flags = SDL_INIT_EVERYTHING; in SDL_WasInit()
213 return (SDL_initialized&flags); in SDL_WasInit()