add workaround for game speed limiter problem with bnet
This commit is contained in:
parent
243c203f37
commit
073dac298f
1 changed files with 4 additions and 0 deletions
|
@ -1049,8 +1049,12 @@ HRESULT __stdcall ddraw_surface_Unlock(IDirectDrawSurfaceImpl *This, LPVOID lpRe
|
||||||
|
|
||||||
if (erase)
|
if (erase)
|
||||||
{
|
{
|
||||||
|
BOOL x = ddraw->ticksLimiter.useBltOrFlip;
|
||||||
|
|
||||||
DDBLTFX fx = { .dwFillColor = 0xFE };
|
DDBLTFX fx = { .dwFillColor = 0xFE };
|
||||||
IDirectDrawSurface_Blt(This, NULL, NULL, NULL, DDBLT_COLORFILL, &fx);
|
IDirectDrawSurface_Blt(This, NULL, NULL, NULL, DDBLT_COLORFILL, &fx);
|
||||||
|
|
||||||
|
ddraw->ticksLimiter.useBltOrFlip = x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue