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

don't save cursor post on peek/get message

This commit is contained in:
FunkyFr3sh 2024-05-31 05:46:26 +02:00
parent a08be3e922
commit 4b153ee11f

View File

@ -689,9 +689,6 @@ BOOL WINAPI fake_GetMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wM
lpMsg->pt.x = min(x, g_ddraw.width - 1);
lpMsg->pt.y = min(y, g_ddraw.height - 1);
InterlockedExchange((LONG*)&g_ddraw.cursor.x, lpMsg->pt.x);
InterlockedExchange((LONG*)&g_ddraw.cursor.y, lpMsg->pt.y);
}
else
{
@ -727,9 +724,6 @@ BOOL WINAPI fake_PeekMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT w
lpMsg->pt.x = min(x, g_ddraw.width - 1);
lpMsg->pt.y = min(y, g_ddraw.height - 1);
InterlockedExchange((LONG*)&g_ddraw.cursor.x, lpMsg->pt.x);
InterlockedExchange((LONG*)&g_ddraw.cursor.y, lpMsg->pt.y);
}
else
{