diff options
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/render/software/Agg2D.pas | 6 |
1 files changed, 3 insertions, 3 deletions
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 |