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

Always use DDLOCK_NOSYSLOCK

Fixes presentation stuttering when a surface is locked indefinitely.
This commit is contained in:
narzoul 2022-11-05 18:41:47 +01:00
parent 66ad6db3d9
commit 246108bbdf

View File

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