replace GetTickCount with timeGetTime
This commit is contained in:
parent
34fb69fb63
commit
2e9378796a
3 changed files with 4 additions and 4 deletions
4
render.c
4
render.c
|
@ -99,7 +99,7 @@ DWORD WINAPI render_main(void)
|
|||
|
||||
if(ddraw->render.maxfps > 0)
|
||||
{
|
||||
tick_start = GetTickCount();
|
||||
tick_start = timeGetTime();
|
||||
}
|
||||
|
||||
/* convert ddraw surface to opengl texture */
|
||||
|
@ -154,7 +154,7 @@ DWORD WINAPI render_main(void)
|
|||
|
||||
if((ddraw->render.maxfps > 0))
|
||||
{
|
||||
tick_end = GetTickCount();
|
||||
tick_end = timeGetTime();
|
||||
|
||||
if(tick_end - tick_start < frame_len)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue