From 073dac298f5a8622db32307ae54b23aeb8aceadc Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Fri, 9 Aug 2019 10:10:37 +0200 Subject: [PATCH] add workaround for game speed limiter problem with bnet --- src/surface.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/surface.c b/src/surface.c index 5de71f1..a78acc7 100644 --- a/src/surface.c +++ b/src/surface.c @@ -1049,8 +1049,12 @@ HRESULT __stdcall ddraw_surface_Unlock(IDirectDrawSurfaceImpl *This, LPVOID lpRe if (erase) { + BOOL x = ddraw->ticksLimiter.useBltOrFlip; + DDBLTFX fx = { .dwFillColor = 0xFE }; IDirectDrawSurface_Blt(This, NULL, NULL, NULL, DDBLT_COLORFILL, &fx); + + ddraw->ticksLimiter.useBltOrFlip = x; } }