summaryrefslogtreecommitdiff
path: root/src/corelib/render/software
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-03-19 14:09:43 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-03-19 14:09:43 +0200
commit8095bbb7db77e91b69eaf9a6390c6a6f229dce1c (patch)
treec009580733d7cdbf95b985d4f0ac3f5d21d46d89 /src/corelib/render/software
parent4ac52fad0c2a3b951a2c806d237d6c76f0322f4a (diff)
downloadfpGUI-8095bbb7db77e91b69eaf9a6390c6a6f229dce1c.tar.xz
agg: Implement backward compatible Arc drawing
Diffstat (limited to 'src/corelib/render/software')
-rw-r--r--src/corelib/render/software/Agg2D.pas9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/corelib/render/software/Agg2D.pas b/src/corelib/render/software/Agg2D.pas
index cfc0e5e0..3dd03855 100644
--- a/src/corelib/render/software/Agg2D.pas
+++ b/src/corelib/render/software/Agg2D.pas
@@ -3716,12 +3716,17 @@ end;
procedure TAgg2D.DoDrawArc(x, y, w, h: TfpgCoord; a1, a2: Extended);
begin
-
+ NoFill;
+ LineColor(LineColor);
+ Arc(x+(w/2), y+(h/2), w/2, h/2, Deg2Rad(a1+90), Deg2Rad(a2+90));
end;
procedure TAgg2D.DoFillArc(x, y, w, h: TfpgCoord; a1, a2: Extended);
begin
-
+ {$Note AggPas's Arc only does stroking, not filling. Make another plan }
+ NoFill;
+ LineColor(LineColor);
+ Arc(x+(w/2), y+(h/2), w/2, h/2, Deg2Rad(a1+90), Deg2Rad(a2+90));
end;
procedure TAgg2D.DoDrawPolygon(Points: PPoint; NumPts: Integer; Winding: boolean);