1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

use PM_QS_INPUT for not responding patch

This commit is contained in:
FunkyFr3sh 2024-09-09 21:14:37 +02:00
parent 8a6f94ae95
commit 9d5d71c999

View File

@ -59,7 +59,7 @@ HRESULT dds_Blt(
/* workaround for "Not Responding" window problem */
g_ddraw.last_msg_pull_tick = timeGetTime();
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 &&
@ -1003,7 +1003,7 @@ HRESULT dds_Lock(
/* workaround for "Not Responding" window problem */
g_ddraw.last_msg_pull_tick = timeGetTime();
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);