mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 18:00:26 +02:00
fix cursor position calculation (issue #7842)
git-svn-id: trunk@10478 -
This commit is contained in:
parent
abc46812c6
commit
32652db6f4
@ -681,7 +681,7 @@ Var
|
||||
begin
|
||||
Windows.GetCursorPos(Windows.POINT(P));
|
||||
Windows.ScreenToClient(Window, Windows.POINT(P));
|
||||
if GetLCLClientBoundsOffset(lWinControl.Parent, BoundsOffset) then
|
||||
if GetLCLClientBoundsOffset(lWinControl, BoundsOffset) then
|
||||
begin
|
||||
Dec(P.X, BoundsOffset.Left);
|
||||
Dec(P.Y, BoundsOffset.Top);
|
||||
|
Loading…
Reference in New Issue
Block a user