def _video_autoquit(): if SDL.SDL_WasInit(SDL.SDL_INIT_VIDEO): SDL.SDL_QuitSubSystem(SDL.SDL_INIT_VIDEO)
def _video_autoinit(): if not SDL.SDL_WasInit(SDL.SDL_INIT_VIDEO): SDL.SDL_InitSubSystem(SDL.SDL_INIT_VIDEO) SDL.SDL_EnableUNICODE(1) return 1