fix last_msg_pull_tick update
This commit is contained in:
parent
f3d1ba8cf4
commit
a063e25825
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
if (g_ddraw.ref && hWnd == g_ddraw.hwnd)
|
||||
if (g_ddraw.ref && (!hWnd || hWnd == g_ddraw.hwnd))
|
||||
g_ddraw.last_msg_pull_tick = timeGetTime();
|
||||
|
||||
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)
|
||||
{
|
||||
if (g_ddraw.ref && hWnd == g_ddraw.hwnd)
|
||||
if (g_ddraw.ref && (!hWnd || hWnd == g_ddraw.hwnd))
|
||||
g_ddraw.last_msg_pull_tick = timeGetTime();
|
||||
|
||||
BOOL result = real_PeekMessageA(lpMsg, hWnd, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
|
||||
|
|
Loading…
Reference in a new issue