From 86aa1a26b8ac2a9bea27cd78db4558840d899ad1 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Fri, 10 May 2013 19:24:10 +0100 Subject: 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. --- src/corelib/render/software/Agg2D.pas | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/corelib') 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 } -- cgit v1.2.3-70-g09d2