mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
use PM_QS_INPUT for not responding patch
This commit is contained in:
parent
8a6f94ae95
commit
9d5d71c999
@ -59,7 +59,7 @@ HRESULT dds_Blt(
|
|||||||
/* workaround for "Not Responding" window problem */
|
/* workaround for "Not Responding" window problem */
|
||||||
g_ddraw.last_msg_pull_tick = timeGetTime();
|
g_ddraw.last_msg_pull_tick = timeGetTime();
|
||||||
MSG msg;
|
MSG msg;
|
||||||
real_PeekMessageA(&msg, g_ddraw.hwnd, 0, 0, PM_NOREMOVE);
|
real_PeekMessageA(&msg, g_ddraw.hwnd, 0, 0, PM_NOREMOVE | PM_QS_INPUT);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_ddraw.ref &&
|
if (g_ddraw.ref &&
|
||||||
@ -1003,7 +1003,7 @@ HRESULT dds_Lock(
|
|||||||
/* workaround for "Not Responding" window problem */
|
/* workaround for "Not Responding" window problem */
|
||||||
g_ddraw.last_msg_pull_tick = timeGetTime();
|
g_ddraw.last_msg_pull_tick = timeGetTime();
|
||||||
MSG msg;
|
MSG msg;
|
||||||
real_PeekMessageA(&msg, g_ddraw.hwnd, 0, 0, PM_NOREMOVE);
|
real_PeekMessageA(&msg, g_ddraw.hwnd, 0, 0, PM_NOREMOVE | PM_QS_INPUT);
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT ret = dds_GetSurfaceDesc(This, lpDDSurfaceDesc);
|
HRESULT ret = dds_GetSurfaceDesc(This, lpDDSurfaceDesc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user