opengl: getting rid of cocoa GetNSObjectView

git-svn-id: trunk@61767 -
This commit is contained in:
dmitry 2019-08-27 19:25:49 +00:00
parent 6a0eef0c01
commit 159d5cc8cc

View File

@ -195,7 +195,7 @@ begin
Result:=0;
p := nil;
if (AParams.WndParent <> 0) then
p := CocoaUtils.GetNSObjectView(NSObject(AParams.WndParent));
p := NSObject(AParams.WndParent).lclContentView;
if Assigned(p) then
LCLToNSRect(types.Bounds(AParams.X, AParams.Y, AParams.Width, AParams.Height),
p.frame.size.height, ns)