Revert "don't update cursor pos in mouse hook"

This reverts commit c1a5a3895b.
This commit is contained in:
FunkyFr3sh 2024-09-10 15:40:35 +02:00
parent cdb68e9dd1
commit 801d31f68e
3 changed files with 3 additions and 7 deletions

View file

@ -675,12 +675,8 @@ void HandleMessage(LPMSG lpMsg, HWND hWnd)
{
// Does not work with 'New Robinson'
lpMsg->message = (UINT)MAKELONG(WM_NULL, HIWORD(lpMsg->message));
break;
}
InterlockedExchange((LONG*)&g_ddraw.cursor.x, GET_X_LPARAM(lpMsg->lParam));
InterlockedExchange((LONG*)&g_ddraw.cursor.y, GET_Y_LPARAM(lpMsg->lParam));
break;
}
}