From d7817f424b59003f8c768a8c3c6f3913021c1f5e Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 17 Aug 2013 17:04:14 -0700 Subject: [PATCH] Fixed for consistency with the other platforms --- src/timer/windows/SDL_systimer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/timer/windows/SDL_systimer.c b/src/timer/windows/SDL_systimer.c index 24a0c8cec0bd5..afa77c14a4996 100644 --- a/src/timer/windows/SDL_systimer.c +++ b/src/timer/windows/SDL_systimer.c @@ -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 @@ SDL_InitTicks(void) Uint32 SDL_GetTicks(void) { - if (!ticks_started) SDL_InitTicks(); + if (!ticks_started) { + SDL_InitTicks(); + } DWORD now; #ifndef USE_GETTICKCOUNT