summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2013-05-10 19:24:10 +0100
committerGraeme Geldenhuys <graemeg@gmail.com>2013-05-10 19:24:10 +0100
commit86aa1a26b8ac2a9bea27cd78db4558840d899ad1 (patch)
tree6b2f7805dc671a5a4e3143855525f169060f2af6
parent9b5547a497f440622a1ea93053501fdb92238035 (diff)
downloadfpGUI-86aa1a26b8ac2a9bea27cd78db4558840d899ad1.tar.xz
agg: fixes bug when attaching a Image to TAgg2d doesn't draw lines.
I forgot to setup the internal dash generator in the TAgg2d constructor. The AggCanvas did this automatically in the Canvas.BeginDraw() call, but using TAdd2D via the .Attach(bitmap) didn't.
-rw-r--r--src/corelib/render/software/Agg2D.pas3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/render/software/Agg2D.pas b/src/corelib/render/software/Agg2D.pas
index 750014f5..e0519382 100644
--- a/src/corelib/render/software/Agg2D.pas
+++ b/src/corelib/render/software/Agg2D.pas
@@ -1288,6 +1288,9 @@ begin
m_pathTransform.Construct (@m_convCurve ,@m_transform );
m_strokeTransform.Construct(@m_convStroke ,@m_transform );
+ m_convDash.remove_all_dashes;
+ m_convDash.add_dash(600, 0); {$NOTE Find a better way to prevent dash generation }
+
{$IFDEF AGG2D_USE_FREETYPE }
m_fontEngine.Construct;
{$ENDIF }