revert LimitGameTicks changes since it's causing flickering in unpatched versions of cnc1 and ra1
This commit is contained in:
parent
f051957ddb
commit
8e75c40cc3
3 changed files with 5 additions and 15 deletions
|
@ -445,7 +445,7 @@ HRESULT __stdcall ddraw_surface_Blt(IDirectDrawSurfaceImpl *This, LPRECT lpDestR
|
|||
}
|
||||
|
||||
if (ddraw->ticklength > 0)
|
||||
LimitGameTicks(TRUE);
|
||||
LimitGameTicks();
|
||||
}
|
||||
|
||||
return DD_OK;
|
||||
|
@ -688,7 +688,7 @@ HRESULT __stdcall ddraw_surface_Flip(IDirectDrawSurfaceImpl *This, LPDIRECTDRAWS
|
|||
*/
|
||||
|
||||
if (ddraw->ticklength > 0)
|
||||
LimitGameTicks(TRUE);
|
||||
LimitGameTicks();
|
||||
}
|
||||
|
||||
return DD_OK;
|
||||
|
@ -955,8 +955,6 @@ HRESULT __stdcall ddraw_surface_Unlock(IDirectDrawSurfaceImpl *This, LPVOID lpRe
|
|||
InterlockedExchange(&ddraw->render.surfaceUpdated, TRUE);
|
||||
ReleaseSemaphore(ddraw->render.sem, 1, NULL);
|
||||
|
||||
if (ddraw->ticklength > 0)
|
||||
LimitGameTicks(FALSE);
|
||||
}
|
||||
|
||||
return DD_OK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue