Ver código fonte

Fix a Win32 timer regression bug.

legacy
Sam Hocevar sam 15 anos atrás
pai
commit
9319141475
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      src/timer.cpp

+ 1
- 1
src/timer.cpp Ver arquivo

@@ -69,7 +69,7 @@ private:
cycles0 = cycles;
towait = deltams - ret;
if (towait > 5e-4f) // FIXME: use native Win32 stuff
SDL_Delay((int)(towait * 1e3f + 0.5f));
SDL_Delay((int)(towait + 0.5f));
#else
/* The crappy SDL fallback */
Uint32 ticks = SDL_GetTicks();


Carregando…
Cancelar
Salvar