replace GetTickCount with timeGetTime
This commit is contained in:
parent
34fb69fb63
commit
2e9378796a
3 changed files with 4 additions and 4 deletions
BIN
ddraw.dll
BIN
ddraw.dll
Binary file not shown.
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)
|
||||
{
|
||||
|
|
|
@ -101,7 +101,7 @@ DWORD WINAPI render_soft_main(void)
|
|||
{
|
||||
if(ddraw->render.maxfps > 0)
|
||||
{
|
||||
tick_start = GetTickCount();
|
||||
tick_start = timeGetTime();
|
||||
}
|
||||
|
||||
EnterCriticalSection(&ddraw->cs);
|
||||
|
@ -155,7 +155,7 @@ DWORD WINAPI render_soft_main(void)
|
|||
|
||||
if((ddraw->render.maxfps > 0) && !detect_cutscene())
|
||||
{
|
||||
tick_end = GetTickCount();
|
||||
tick_end = timeGetTime();
|
||||
|
||||
if(tick_end - tick_start < frame_len)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue