mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
fix last_msg_pull_tick update
This commit is contained in:
parent
f3d1ba8cf4
commit
a063e25825
@ -710,7 +710,7 @@ BOOL HandleMessage(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMa
|
|||||||
|
|
||||||
BOOL WINAPI fake_GetMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax)
|
BOOL WINAPI fake_GetMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax)
|
||||||
{
|
{
|
||||||
if (g_ddraw.ref && hWnd == g_ddraw.hwnd)
|
if (g_ddraw.ref && (!hWnd || hWnd == g_ddraw.hwnd))
|
||||||
g_ddraw.last_msg_pull_tick = timeGetTime();
|
g_ddraw.last_msg_pull_tick = timeGetTime();
|
||||||
|
|
||||||
BOOL result = real_GetMessageA(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
|
BOOL result = real_GetMessageA(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax);
|
||||||
@ -748,7 +748,7 @@ BOOL WINAPI fake_GetMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wM
|
|||||||
|
|
||||||
BOOL WINAPI fake_PeekMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg)
|
BOOL WINAPI fake_PeekMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax, UINT wRemoveMsg)
|
||||||
{
|
{
|
||||||
if (g_ddraw.ref && hWnd == g_ddraw.hwnd)
|
if (g_ddraw.ref && (!hWnd || hWnd == g_ddraw.hwnd))
|
||||||
g_ddraw.last_msg_pull_tick = timeGetTime();
|
g_ddraw.last_msg_pull_tick = timeGetTime();
|
||||||
|
|
||||||
BOOL result = real_PeekMessageA(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
|
BOOL result = real_PeekMessageA(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user