Skip to content

Commit

Permalink
Fixed for consistency with the other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 18, 2013
1 parent e187810 commit d7817f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/timer/windows/SDL_systimer.c
Expand Up @@ -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 */
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d7817f4

Please sign in to comment.