aggpas: fixed FillRect border and position

git-svn-id: trunk@22119 -
This commit is contained in:
mattias 2009-10-12 15:26:40 +00:00
parent f29dd380ea
commit a4e6d005ef
2 changed files with 11 additions and 1 deletions

View File

@ -51,6 +51,8 @@ begin
Line(12,10,22,10);
Line(10,12,10,22);
Line(12,12,22,22);
FillRect(40,10,50,20);
end;
// convert to LCL native pixel format
@ -65,6 +67,8 @@ begin
Line(24,10,34,10);
Line(10,24,10,34);
Line(24,24,34,34);
FillRect(40,22,50,32);
end;
end;

View File

@ -240,7 +240,13 @@ end;
procedure TAggLCLCanvas.FillRect(X1, Y1, X2, Y2: Integer);
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;
{ TAggLCLBrush }