1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Revert "Always use DDLOCK_NOSYSLOCK"

This reverts commit 246108bbdfb0bde175a63f06afc2f5b36e85ac36.

See issue #256.
This commit is contained in:
narzoul 2023-11-17 21:53:03 +01:00
parent bf73a7dd21
commit 329679b4e9

View File

@ -238,7 +238,7 @@ namespace DDraw
{
Gdi::WinProc::startFrame();
RealPrimarySurface::waitForFlip(m_data->getDDS());
HRESULT result = getOrigVtable(This).Lock(This, lpDestRect, lpDDSurfaceDesc, dwFlags | DDLOCK_NOSYSLOCK, hEvent);
HRESULT result = getOrigVtable(This).Lock(This, lpDestRect, lpDDSurfaceDesc, dwFlags, hEvent);
if (SUCCEEDED(result))
{
restoreOrigCaps(lpDDSurfaceDesc->ddsCaps.dwCaps);