diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-03-19 14:09:43 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-03-19 14:09:43 +0200 |
commit | 8095bbb7db77e91b69eaf9a6390c6a6f229dce1c (patch) | |
tree | c009580733d7cdbf95b985d4f0ac3f5d21d46d89 | |
parent | 4ac52fad0c2a3b951a2c806d237d6c76f0322f4a (diff) | |
download | fpGUI-8095bbb7db77e91b69eaf9a6390c6a6f229dce1c.tar.xz |
agg: Implement backward compatible Arc drawing
-rw-r--r-- | src/corelib/render/software/Agg2D.pas | 9 |
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); |