mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-22 03:26:24 +02:00
aggpas: fixed FillRect border and position
git-svn-id: trunk@22119 -
This commit is contained in:
parent
f29dd380ea
commit
a4e6d005ef
@ -51,6 +51,8 @@ begin
|
|||||||
Line(12,10,22,10);
|
Line(12,10,22,10);
|
||||||
Line(10,12,10,22);
|
Line(10,12,10,22);
|
||||||
Line(12,12,22,22);
|
Line(12,12,22,22);
|
||||||
|
|
||||||
|
FillRect(40,10,50,20);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// convert to LCL native pixel format
|
// convert to LCL native pixel format
|
||||||
@ -65,6 +67,8 @@ begin
|
|||||||
Line(24,10,34,10);
|
Line(24,10,34,10);
|
||||||
Line(10,24,10,34);
|
Line(10,24,10,34);
|
||||||
Line(24,24,34,34);
|
Line(24,24,34,34);
|
||||||
|
|
||||||
|
FillRect(40,22,50,32);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -240,7 +240,13 @@ end;
|
|||||||
|
|
||||||
procedure TAggLCLCanvas.FillRect(X1, Y1, X2, Y2: Integer);
|
procedure TAggLCLCanvas.FillRect(X1, Y1, X2, Y2: Integer);
|
||||||
begin
|
begin
|
||||||
Rectangle(X1,Y1,X2,Y2);
|
Path.m_path.remove_all;
|
||||||
|
Path.m_path.move_to(X1,Y1);
|
||||||
|
Path.m_path.line_to(X2,Y1);
|
||||||
|
Path.m_path.line_to(X2,Y2);
|
||||||
|
Path.m_path.line_to(X1,Y2);
|
||||||
|
AggClosePolygon;
|
||||||
|
AggDrawPath(AGG_FillOnly);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TAggLCLBrush }
|
{ TAggLCLBrush }
|
||||||
|
Loading…
Reference in New Issue
Block a user