Fixed for consistency with the other platforms
authorSam Lantinga <slouken@libsdl.org>
Sat, 17 Aug 2013 17:04:14 -0700
changeset 7650 cd3465de2f42
parent 7649 4f801cd08f3f
child 7651 e36a26e969c7
Fixed for consistency with the other platforms
src/timer/windows/SDL_systimer.c
--- a/src/timer/windows/SDL_systimer.c	Sat Aug 17 18:07:29 2013 -0400
+++ b/src/timer/windows/SDL_systimer.c	Sat Aug 17 17:04:14 2013 -0700
@@ -29,9 +29,9 @@
 #include "SDL_hints.h"
 
 
-static BOOL ticks_started = FALSE; 
 /* The first (low-resolution) ticks value of the application */
 static DWORD start;
+static BOOL ticks_started = FALSE; 
 
 #ifndef USE_GETTICKCOUNT
 /* Store if a high-resolution performance counter exists on the system */
@@ -108,7 +108,9 @@
 Uint32
 SDL_GetTicks(void)
 {
-    if (!ticks_started) SDL_InitTicks();
+    if (!ticks_started) {
+        SDL_InitTicks();
+    }
 
     DWORD now;
 #ifndef USE_GETTICKCOUNT