src/video/SDL_video.c
changeset 7139 dd722e7460c5
parent 7135 20db445af8c7
child 7178 8e2156e2ff3e
equal deleted inserted replaced
7138:52ba4fa156c7 7139:dd722e7460c5
    27 #include "SDL_sysvideo.h"
    27 #include "SDL_sysvideo.h"
    28 #include "SDL_blit.h"
    28 #include "SDL_blit.h"
    29 #include "SDL_pixels_c.h"
    29 #include "SDL_pixels_c.h"
    30 #include "SDL_rect_c.h"
    30 #include "SDL_rect_c.h"
    31 #include "../events/SDL_events_c.h"
    31 #include "../events/SDL_events_c.h"
       
    32 #include "../timer/SDL_timer_c.h"
    32 
    33 
    33 #if SDL_VIDEO_OPENGL
    34 #if SDL_VIDEO_OPENGL
    34 #include "SDL_opengl.h"
    35 #include "SDL_opengl.h"
    35 #endif /* SDL_VIDEO_OPENGL */
    36 #endif /* SDL_VIDEO_OPENGL */
    36 
    37 
   413 
   414 
   414     /* Check to make sure we don't overwrite '_this' */
   415     /* Check to make sure we don't overwrite '_this' */
   415     if (_this != NULL) {
   416     if (_this != NULL) {
   416         SDL_VideoQuit();
   417         SDL_VideoQuit();
   417     }
   418     }
       
   419     
       
   420 #if !SDL_TIMERS_DISABLED
       
   421     SDL_InitTicks();
       
   422 #endif
   418 
   423 
   419     /* Start the event loop */
   424     /* Start the event loop */
   420     if (SDL_StartEventLoop() < 0 ||
   425     if (SDL_StartEventLoop() < 0 ||
   421         SDL_KeyboardInit() < 0 ||
   426         SDL_KeyboardInit() < 0 ||
   422         SDL_MouseInit() < 0 ||
   427         SDL_MouseInit() < 0 ||