1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

replace GetTickCount with timeGetTime

This commit is contained in:
FunkyFr3sh 2017-11-12 01:27:14 +01:00
parent 34fb69fb63
commit 2e9378796a
3 changed files with 4 additions and 4 deletions

BIN
ddraw.dll

Binary file not shown.

View File

@ -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)
{

View File

@ -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)
{