Explorar el Código

Fix the SDL timer behaviour. Fixes ticket #26.

legacy
Sam Hocevar sam hace 15 años
padre
commit
46db0d51c8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/timer.cpp

+ 1
- 1
src/timer.cpp Ver fichero

@@ -77,7 +77,7 @@ private:
#else
/* The crappy SDL fallback */
Uint32 ticks = SDL_GetTicks();
ret = 1e-6f * (ticks - ticks0);
ret = ticks - ticks0;
if (update)
ticks0 = ticks;
towait = deltams - ret;


Cargando…
Cancelar
Guardar