don't update cursor pos in mouse hook

This commit is contained in:
FunkyFr3sh 2024-09-09 15:23:31 +02:00
parent 89d3845473
commit c1a5a3895b
3 changed files with 7 additions and 3 deletions

View file

@ -168,9 +168,6 @@ LRESULT CALLBACK mouse_gm_hook_proc(int code, WPARAM wParam, LPARAM lParam)
x = min(x, g_ddraw.width - 1);
y = min(y, g_ddraw.height - 1);
InterlockedExchange((LONG*)&g_ddraw.cursor.x, x);
InterlockedExchange((LONG*)&g_ddraw.cursor.y, y);
msg->lParam = MAKELPARAM(x, y);
break;