src/SDL.c
changeset 7110 2a98852fd58d
parent 7037 3fedf1f25b94
child 7139 dd722e7460c5
equal deleted inserted replaced
7109:003d40e446f5 7110:2a98852fd58d
    34 #if !SDL_TIMERS_DISABLED
    34 #if !SDL_TIMERS_DISABLED
    35 extern void SDL_StartTicks(void);
    35 extern void SDL_StartTicks(void);
    36 extern int SDL_TimerInit(void);
    36 extern int SDL_TimerInit(void);
    37 extern void SDL_TimerQuit(void);
    37 extern void SDL_TimerQuit(void);
    38 #endif
    38 #endif
    39 #if defined(__WIN32__)
    39 #if SDL_VIDEO_DRIVER_WINDOWS
    40 extern int SDL_HelperWindowCreate(void);
    40 extern int SDL_HelperWindowCreate(void);
    41 extern int SDL_HelperWindowDestroy(void);
    41 extern int SDL_HelperWindowDestroy(void);
    42 #endif
    42 #endif
    43 
    43 
    44 
    44 
   198     }
   198     }
   199 
   199 
   200     /* Clear the error message */
   200     /* Clear the error message */
   201     SDL_ClearError();
   201     SDL_ClearError();
   202 
   202 
   203 #if defined(__WIN32__)
   203 #if SDL_VIDEO_DRIVER_WINDOWS
   204     if (SDL_HelperWindowCreate() < 0) {
   204     if (SDL_HelperWindowCreate() < 0) {
   205         return -1;
   205         return -1;
   206     }
   206     }
   207 #endif
   207 #endif
   208 
   208 
   308 SDL_Quit(void)
   308 SDL_Quit(void)
   309 {
   309 {
   310     SDL_bInMainQuit = SDL_TRUE;
   310     SDL_bInMainQuit = SDL_TRUE;
   311 
   311 
   312     /* Quit all subsystems */
   312     /* Quit all subsystems */
   313 #if defined(__WIN32__)
   313 #if SDL_VIDEO_DRIVER_WINDOWS
   314     SDL_HelperWindowDestroy();
   314     SDL_HelperWindowDestroy();
   315 #endif
   315 #endif
   316     SDL_QuitSubSystem(SDL_INIT_EVERYTHING);
   316     SDL_QuitSubSystem(SDL_INIT_EVERYTHING);
   317 
   317 
   318     /* Uninstall any parachute signal handlers */
   318     /* Uninstall any parachute signal handlers */