Revert "don't update cursor pos in mouse hook"
This reverts commit c1a5a3895b
.
This commit is contained in:
parent
cdb68e9dd1
commit
801d31f68e
3 changed files with 3 additions and 7 deletions
|
@ -168,6 +168,9 @@ 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue