mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 03:35:57 +02:00
cocoa: update ScreenToLocal to support flipped controls
git-svn-id: trunk@61705 -
This commit is contained in:
parent
1437ddef5a
commit
db5060e608
@ -1060,7 +1060,10 @@ begin
|
||||
// 2. convert from window to local
|
||||
P := convertPoint_FromView(P, nil);
|
||||
X := Round(P.x);
|
||||
Y := Round(frame.size.height-P.y); // convert to Cocoa system
|
||||
if isFlipped then
|
||||
Y := Round(p.y)
|
||||
else
|
||||
Y := Round(frame.size.height-P.y); // convert to Cocoa system
|
||||
end;
|
||||
|
||||
function LCLViewExtension.lclParent:id;
|
||||
|
Loading…
Reference in New Issue
Block a user