Fixed for consistency with the other platforms
authorSam Lantinga <slouken@libsdl.org>
Sat, 17 Aug 2013 17:04:14 -0700
changeset 7650cd3465de2f42
parent 7649 4f801cd08f3f
child 7651 e36a26e969c7
Fixed for consistency with the other platforms
src/timer/windows/SDL_systimer.c
     1.1 --- a/src/timer/windows/SDL_systimer.c	Sat Aug 17 18:07:29 2013 -0400
     1.2 +++ b/src/timer/windows/SDL_systimer.c	Sat Aug 17 17:04:14 2013 -0700
     1.3 @@ -29,9 +29,9 @@
     1.4  #include "SDL_hints.h"
     1.5  
     1.6  
     1.7 -static BOOL ticks_started = FALSE; 
     1.8  /* The first (low-resolution) ticks value of the application */
     1.9  static DWORD start;
    1.10 +static BOOL ticks_started = FALSE; 
    1.11  
    1.12  #ifndef USE_GETTICKCOUNT
    1.13  /* Store if a high-resolution performance counter exists on the system */
    1.14 @@ -108,7 +108,9 @@
    1.15  Uint32
    1.16  SDL_GetTicks(void)
    1.17  {
    1.18 -    if (!ticks_started) SDL_InitTicks();
    1.19 +    if (!ticks_started) {
    1.20 +        SDL_InitTicks();
    1.21 +    }
    1.22  
    1.23      DWORD now;
    1.24  #ifndef USE_GETTICKCOUNT