summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-03-12 19:30:14 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-03-12 19:30:14 +0200
commit70459824c2533ff56be97679822c9c8f69771cfa (patch)
tree8b30bf848cbb7ec4016c0ed5a35484f31b3eb81a /src/corelib
parent4fde2f427fd8f0997fa3fa8573894d62a944ca2c (diff)
downloadfpGUI-70459824c2533ff56be97679822c9c8f69771cfa.tar.xz
agg: more readable AnsiString to PChar casting.
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/render/software/Agg2D.pas6
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