lcl: simplify code of TScreen.GetDesktopRect

git-svn-id: trunk@33405 -
This commit is contained in:
paul 2011-11-08 02:58:38 +00:00
parent 2a56348bba
commit 68f94a04da

View File

@ -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;