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:
parent
34fb69fb63
commit
2e9378796a
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…
x
Reference in New Issue
Block a user