mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
Fix freezing when minimizing, thanks to Heavylobster for reporting and testing
This commit is contained in:
parent
158344348d
commit
f59421bbe8
@ -93,7 +93,7 @@ HRESULT __stdcall ddraw_surface_Blt(IDirectDrawSurfaceImpl *This, LPRECT lpDestR
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(This->caps & DDSCAPS_PRIMARYSURFACE)
|
if(This->caps & DDSCAPS_PRIMARYSURFACE && ddraw->render.run)
|
||||||
{
|
{
|
||||||
WaitForSingleObject(ddraw->render.ev, INFINITE);
|
WaitForSingleObject(ddraw->render.ev, INFINITE);
|
||||||
ResetEvent(ddraw->render.ev);
|
ResetEvent(ddraw->render.ev);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user