mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 17:39:22 +02:00
MG: accelerated designer drawings
git-svn-id: trunk@2053 -
This commit is contained in:
parent
2a2e84fe6c
commit
c05bde78cf
@ -1241,13 +1241,15 @@ begin
|
||||
for i:=0 to FCustomForm.ComponentCount-1 do begin
|
||||
if not (FCustomForm.Components[i] is TControl) then begin
|
||||
Diff:=aDDC.FormOrigin;
|
||||
aDDC.Save;
|
||||
// non-visual component
|
||||
ItemLeftTop:=NonVisualComponentLeftTop(FCustomForm.Components[i]);
|
||||
ItemLeft:=ItemLeftTop.X-Diff.X;
|
||||
ItemTop:=ItemLeftTop.Y-Diff.Y;
|
||||
ItemRight:=ItemLeft+NonVisualCompWidth;
|
||||
ItemBottom:=ItemTop+NonVisualCompWidth;
|
||||
if not aDDC.RectVisible(ItemLeft,ItemTop,ItemRight,ItemBottom) then
|
||||
continue;
|
||||
aDDC.Save;
|
||||
with aDDC.Canvas do begin
|
||||
Brush.Color:=clWhite;
|
||||
for j:=0 to NonVisualCompBorder-1 do begin
|
||||
@ -1283,7 +1285,7 @@ begin
|
||||
end;
|
||||
if (ControlSelection.Count>1)
|
||||
and (ControlSelection.IsSelected(FCustomForm.Components[i])) then
|
||||
ControlSelection.DrawMarkerAt(aDDC.Canvas,
|
||||
ControlSelection.DrawMarkerAt(aDDC,
|
||||
ItemLeft,ItemTop,NonVisualCompWidth,NonVisualCompWidth);
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user