From 4b153ee11f1527c1cab728bb64744bbe2bb8683f Mon Sep 17 00:00:00 2001 From: FunkyFr3sh <cc.red.alert.1@googlemail.com> Date: Fri, 31 May 2024 05:46:26 +0200 Subject: [PATCH] don't save cursor post on peek/get message --- src/winapi_hooks.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/winapi_hooks.c b/src/winapi_hooks.c index c0a2f38..9ee2eab 100644 --- a/src/winapi_hooks.c +++ b/src/winapi_hooks.c @@ -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 {