mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 23:58:23 +02:00
opengl: getting rid of cocoa GetNSObjectView
git-svn-id: trunk@61767 -
This commit is contained in:
parent
6a0eef0c01
commit
159d5cc8cc
@ -195,7 +195,7 @@ begin
|
|||||||
Result:=0;
|
Result:=0;
|
||||||
p := nil;
|
p := nil;
|
||||||
if (AParams.WndParent <> 0) then
|
if (AParams.WndParent <> 0) then
|
||||||
p := CocoaUtils.GetNSObjectView(NSObject(AParams.WndParent));
|
p := NSObject(AParams.WndParent).lclContentView;
|
||||||
if Assigned(p) then
|
if Assigned(p) then
|
||||||
LCLToNSRect(types.Bounds(AParams.X, AParams.Y, AParams.Width, AParams.Height),
|
LCLToNSRect(types.Bounds(AParams.X, AParams.Y, AParams.Width, AParams.Height),
|
||||||
p.frame.size.height, ns)
|
p.frame.size.height, ns)
|
||||||
|
Loading…
Reference in New Issue
Block a user