src/timer/haiku/SDL_systimer.c
changeset 8268 3f8410f20405
parent 8149 681eb46b8ac4
child 9619 b94b6d0bff0f
     1.1 --- a/src/timer/haiku/SDL_systimer.c	Fri Feb 28 16:24:41 2014 -0800
     1.2 +++ b/src/timer/haiku/SDL_systimer.c	Sat Mar 01 09:50:52 2014 -0800
     1.3 @@ -30,7 +30,7 @@
     1.4  static SDL_bool ticks_started = SDL_FALSE;
     1.5  
     1.6  void
     1.7 -SDL_InitTicks(void)
     1.8 +SDL_TicksInit(void)
     1.9  {
    1.10      if (ticks_started) {
    1.11          return;
    1.12 @@ -41,11 +41,17 @@
    1.13      start = system_time();
    1.14  }
    1.15  
    1.16 +void
    1.17 +SDL_TicksQuit(void)
    1.18 +{
    1.19 +    ticks_started = SDL_FALSE;
    1.20 +}
    1.21 +
    1.22  Uint32
    1.23  SDL_GetTicks(void)
    1.24  {
    1.25      if (!ticks_started) {
    1.26 -        SDL_InitTicks();
    1.27 +        SDL_TicksInit();
    1.28      }
    1.29  
    1.30      return ((system_time() - start) / 1000);