summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-03-16 00:06:31 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-03-16 00:06:31 +0200
commitae3bb81ae91ee412ee8199edce5e452b502d2519 (patch)
treed71a1acd84b796cfff5a416f1cd034506d01c29b /src
parent8e458bc5c9d0639e50dd9dad7e6784b98f977f19 (diff)
downloadfpGUI-ae3bb81ae91ee412ee8199edce5e452b502d2519.tar.xz
agg: TAgg2D class is now a TfpgCanvasBase descendant.
Diffstat (limited to 'src')
-rw-r--r--src/corelib/render/software/Agg2D.pas9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/corelib/render/software/Agg2D.pas b/src/corelib/render/software/Agg2D.pas
index 80a99cb0..e7257776 100644
--- a/src/corelib/render/software/Agg2D.pas
+++ b/src/corelib/render/software/Agg2D.pas
@@ -233,7 +233,7 @@ type
end;
- TAgg2D = class
+ TAgg2D = class(TfpgCanvasBase)
private
m_rbuf : rendering_buffer;
m_pixf : TPixelFormat;
@@ -326,7 +326,7 @@ type
m_ifBlackman144 : image_filter_blackman144;
public
- constructor Create;
+ constructor Create(awin: TfpgWindowBase); override;
destructor Destroy; override;
// Vector Graphics Engine Initialization
@@ -1085,8 +1085,11 @@ begin
end;
{ CREATE }
-constructor TAgg2D.Create;
+constructor TAgg2D.Create(awin: TfpgWindowBase);
begin
+ inherited Create(awin);
+
+ FLineWidth := 1;
m_rbuf.Construct;
m_pixf:=pf32bit;