mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
don't save cursor post on peek/get message
This commit is contained in:
parent
a08be3e922
commit
4b153ee11f
@ -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.x = min(x, g_ddraw.width - 1);
|
||||||
lpMsg->pt.y = min(y, g_ddraw.height - 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
|
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.x = min(x, g_ddraw.width - 1);
|
||||||
lpMsg->pt.y = min(y, g_ddraw.height - 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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user