mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 18:30:44 +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;
|
function CGRectToRect(const c:CGRect):TRect;
|
||||||
begin
|
begin
|
||||||
with Result do begin
|
Result.Left:=round(c.origin.x);
|
||||||
Left:=round(c.origin.x);
|
Result.Top:=round(c.origin.y);
|
||||||
Top:=round(c.origin.y);
|
Result.Right:=round(c.origin.x+c.size.width);
|
||||||
Right:=round(c.origin.x+c.size.width);
|
Result.Bottom:=round(c.origin.y+c.size.height);
|
||||||
Bottom:=round(c.origin.y+c.size.height);
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function RectToNSRect(const r: TRect): NSRect;
|
function RectToNSRect(const r: TRect): NSRect;
|
||||||
|
Loading…
Reference in New Issue
Block a user