浏览代码

Fix a Win32 timer regression bug.

legacy
Sam Hocevar sam 15 年前
父节点
当前提交
9319141475
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/timer.cpp

+ 1
- 1
src/timer.cpp 查看文件

@@ -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();


正在加载...
取消
保存