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:
parent
66ad6db3d9
commit
246108bbdf
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user