mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 12:41:21 +02:00
lcl: simplify code of TScreen.GetDesktopRect
git-svn-id: trunk@33405 -
This commit is contained in:
parent
2a56348bba
commit
68f94a04da
@ -636,7 +636,7 @@ end;
|
||||
|
||||
function TScreen.GetDataModuleCount: Integer;
|
||||
begin
|
||||
Result:=FDataModuleList.Count;
|
||||
Result := FDataModuleList.Count;
|
||||
end;
|
||||
|
||||
function TScreen.GetDataModules(AIndex: Integer): TDataModule;
|
||||
@ -661,7 +661,13 @@ end;
|
||||
|
||||
function TScreen.GetDesktopRect: TRect;
|
||||
begin
|
||||
Result := Bounds(DesktopLeft, DesktopTop, DesktopWidth, DesktopHeight);
|
||||
with Result do
|
||||
begin
|
||||
Left := DesktopLeft;
|
||||
Top := DesktopTop;
|
||||
Right := Left + DesktopWidth;
|
||||
Bottom := Top + DesktopHeight;
|
||||
end;
|
||||
end;
|
||||
|
||||
function TScreen.GetDesktopTop: Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user