void SDL_Quit(void) { SDL_bInMainQuit = SDL_TRUE; /* Quit all subsystems */ #if SDL_VIDEO_DRIVER_WINDOWS SDL_HelperWindowDestroy(); #endif SDL_QuitSubSystem(SDL_INIT_EVERYTHING); #if !SDL_TIMERS_DISABLED SDL_TicksQuit(); #endif SDL_ClearHints(); SDL_AssertionsQuit(); SDL_LogResetPriorities(); /* Now that every subsystem has been quit, we reset the subsystem refcount * and the list of initialized subsystems. */ SDL_memset( SDL_SubsystemRefCount, 0x0, sizeof(SDL_SubsystemRefCount) ); SDL_bInMainQuit = SDL_FALSE; }
void SDL_Quit(void) { SDL_bInMainQuit = SDL_TRUE; /* Quit all subsystems */ #if defined(__WIN32__) SDL_HelperWindowDestroy(); #endif SDL_QuitSubSystem(SDL_INIT_EVERYTHING); /* Uninstall any parachute signal handlers */ SDL_UninstallParachute(); SDL_ClearHints(); SDL_AssertionsQuit(); SDL_LogResetPriorities(); /* Now that every subsystem has been quit, we reset the subsystem refcount * and the list of initialized subsystems. */ SDL_memset( SDL_SubsystemRefCount, 0x0, sizeof(SDL_SubsystemRefCount) ); SDL_bInMainQuit = SDL_FALSE; }
/* * SDL.clearHints() */ static int l_clearHints(lua_State *L) { SDL_ClearHints(); (void)L; return 0; }
void SDL_Quit(void) { /* Quit all subsystems */ #if defined(__WIN32__) SDL_HelperWindowDestroy(); #endif SDL_QuitSubSystem(SDL_INIT_EVERYTHING); /* Uninstall any parachute signal handlers */ SDL_UninstallParachute(); SDL_ClearHints(); SDL_AssertionsQuit(); SDL_LogResetPriorities(); }
static void sdl2_init_renderer(sdl2_video_t *vid) { unsigned flags = SDL_RENDERER_ACCELERATED; if (vid->video.vsync) flags |= SDL_RENDERER_PRESENTVSYNC; SDL_ClearHints(); SDL_SetHintWithPriority(SDL_HINT_RENDER_VSYNC, vid->video.vsync ? "1" : "0", SDL_HINT_OVERRIDE); vid->renderer = SDL_CreateRenderer(vid->window, -1, flags); if (!vid->renderer) { RARCH_ERR("[SDL]: Failed to initialize renderer: %s", SDL_GetError()); return; } SDL_SetRenderDrawColor(vid->renderer, 0, 0, 0, 255); }
/* * Clear all hints set by {.[]=}. * * @return [nil] */ static VALUE Hints_s_clear(VALUE self) { SDL_ClearHints(); return Qnil; }