From 70459824c2533ff56be97679822c9c8f69771cfa Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Mon, 12 Mar 2012 19:30:14 +0200 Subject: agg: more readable AnsiString to PChar casting. --- src/corelib/render/software/Agg2D.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/corelib') diff --git a/src/corelib/render/software/Agg2D.pas b/src/corelib/render/software/Agg2D.pas index 432ac44f..b10f5d81 100644 --- a/src/corelib/render/software/Agg2D.pas +++ b/src/corelib/render/software/Agg2D.pas @@ -2516,9 +2516,9 @@ begin {$IFDEF AGG2D_USE_FREETYPE } if cache = AGG_VectorFontCache then - m_fontEngine.load_font(PChar(@fileName[1 ] ) ,0 ,glyph_ren_outline ) + m_fontEngine.load_font(PChar(fileName) ,0 ,glyph_ren_outline ) else - m_fontEngine.load_font(PChar(@fileName[1 ] ) ,0 ,glyph_ren_agg_gray8 ); + m_fontEngine.load_font(PChar(fileName) ,0 ,glyph_ren_agg_gray8 ); m_fontEngine.hinting_(m_textHints ); @@ -2590,7 +2590,7 @@ begin y:=0; first:=true; - str_ :=@str[1 ]; + str_ := PChar(str); while str_^ <> #0 do begin -- cgit v1.2.3-70-g09d2