fix for non working links in profile

This commit is contained in:
FunkyFr3sh 2023-04-09 19:32:24 +02:00
parent 6e9307a422
commit 8643372afe

View file

@ -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)
{