cocoa: update ScreenToLocal to support flipped controls

git-svn-id: trunk@61705 -
This commit is contained in:
dmitry 2019-08-16 14:13:39 +00:00
parent 1437ddef5a
commit db5060e608

View File

@ -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;