1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

Fix freezing when minimizing, thanks to Heavylobster for reporting and testing

This commit is contained in:
Toni Spets 2010-11-21 18:19:41 +02:00
parent 158344348d
commit f59421bbe8

View File

@ -93,7 +93,7 @@ HRESULT __stdcall ddraw_surface_Blt(IDirectDrawSurfaceImpl *This, LPRECT lpDestR
}
#endif
if(This->caps & DDSCAPS_PRIMARYSURFACE)
if(This->caps & DDSCAPS_PRIMARYSURFACE && ddraw->render.run)
{
WaitForSingleObject(ddraw->render.ev, INFINITE);
ResetEvent(ddraw->render.ev);