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

revert lock/unlock changes since it doesn't work too well with GDI rendering

This commit is contained in:
FunkyFr3sh 2017-11-12 18:23:26 +01:00
parent 772c0374eb
commit 56693f67ad
2 changed files with 2 additions and 2 deletions

BIN
ddraw.dll

Binary file not shown.

View File

@ -311,7 +311,7 @@ HRESULT __stdcall ddraw_surface_Lock(IDirectDrawSurfaceImpl *This, LPRECT lpDest
HRESULT ret = ddraw_surface_GetSurfaceDesc(This, lpDDSurfaceDesc);
EnterCriticalSection(&ddraw->cs);
//EnterCriticalSection(&ddraw->cs);
return ret;
}
@ -368,7 +368,7 @@ HRESULT __stdcall ddraw_surface_Unlock(IDirectDrawSurfaceImpl *This, LPVOID lpRe
printf("DirectDrawSurface::Unlock(This=%p, lpRect=%p)\n", This, lpRect);
#endif
LeaveCriticalSection(&ddraw->cs);
//LeaveCriticalSection(&ddraw->cs);
return DD_OK;
}