mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 16:40:32 +02:00
lcl: less with-blocks for FPC 3.1.1
git-svn-id: trunk@50296 -
This commit is contained in:
parent
0065a10670
commit
71b53aa5ae
@ -133,12 +133,10 @@ end;
|
||||
|
||||
function CGRectToRect(const c:CGRect):TRect;
|
||||
begin
|
||||
with Result do begin
|
||||
Left:=round(c.origin.x);
|
||||
Top:=round(c.origin.y);
|
||||
Right:=round(c.origin.x+c.size.width);
|
||||
Bottom:=round(c.origin.y+c.size.height);
|
||||
end;
|
||||
Result.Left:=round(c.origin.x);
|
||||
Result.Top:=round(c.origin.y);
|
||||
Result.Right:=round(c.origin.x+c.size.width);
|
||||
Result.Bottom:=round(c.origin.y+c.size.height);
|
||||
end;
|
||||
|
||||
function RectToNSRect(const r: TRect): NSRect;
|
||||
|
Loading…
Reference in New Issue
Block a user