Sfoglia il codice sorgente

Patched to compile with Visual Studio.

Ryan C. Gordon 11 anni fa
parent
commit
7e3b7dbcb6
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      src/timer/windows/SDL_systimer.c

+ 4 - 4
src/timer/windows/SDL_systimer.c

@@ -108,15 +108,15 @@ SDL_InitTicks(void)
 Uint32
 SDL_GetTicks(void)
 {
-    if (!ticks_started) {
-        SDL_InitTicks();
-    }
-
     DWORD now;
 #ifndef USE_GETTICKCOUNT
     LARGE_INTEGER hires_now;
 #endif
 
+    if (!ticks_started) {
+        SDL_InitTicks();
+    }
+
 #ifdef USE_GETTICKCOUNT
     now = GetTickCount();
 #else