mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-16 11:08:54 +00:00
Fixed for consistency with the other platforms
This commit is contained in:
parent
5e8897a82a
commit
6f06b9db7a
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue