From 8643372afe35b45f0b3fa58e4145cf6938e09a00 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Sun, 9 Apr 2023 19:32:24 +0200 Subject: [PATCH] fix for non working links in profile --- src/winapi_hooks.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/winapi_hooks.c b/src/winapi_hooks.c index 1a73cd6..a37181c 100644 --- a/src/winapi_hooks.c +++ b/src/winapi_hooks.c @@ -107,6 +107,16 @@ BOOL WINAPI fake_GetCursorPos(LPPOINT lpPoint) return TRUE; } + else if (lpPoint && g_ddraw->bnet_active && real_ScreenToClient(g_ddraw->hwnd, &pt)) + { + if (pt.x > 0 && pt.x < g_ddraw->width && pt.y > 0 && pt.y < g_ddraw->height) + { + lpPoint->x = pt.x; + lpPoint->y = pt.y; + + return TRUE; + } + } if (lpPoint) {