Skip to content

Commit

Permalink
Revert "Always use DDLOCK_NOSYSLOCK"
Browse files Browse the repository at this point in the history
This reverts commit 246108b.

See issue #256.
  • Loading branch information
narzoul committed Nov 17, 2023
1 parent bf73a7d commit 329679b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DDrawCompat/DDraw/Surfaces/SurfaceImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 329679b

Please sign in to comment.