summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-03-13 10:56:53 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-03-13 10:56:53 +0200
commitc1b6851d1714facb37c32f850f1a600fc26b1e5f (patch)
tree00b6c52c03e02b84c806b60b94d4035013a1c118
parent9a51d62087dbdabe3f865c1b68e5461ee818a759 (diff)
downloadfpGUI-c1b6851d1714facb37c32f850f1a600fc26b1e5f.tar.xz
agg: FT_Init_FreeType's first parameter is now declared as a var parameter.
-rw-r--r--src/corelib/render/software/agg_font_freetype.pas2
-rw-r--r--src/corelib/render/software/agg_font_freetype_lib.pas2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/render/software/agg_font_freetype.pas b/src/corelib/render/software/agg_font_freetype.pas
index bad37233..f3d727f7 100644
--- a/src/corelib/render/software/agg_font_freetype.pas
+++ b/src/corelib/render/software/agg_font_freetype.pas
@@ -834,7 +834,7 @@ begin
m_curves16.approximation_scale_(4.0 );
m_curves32.approximation_scale_(4.0 );
- m_last_error:=FT_Init_FreeType(@m_library );
+ m_last_error:=FT_Init_FreeType(m_library );
if m_last_error = 0 then
m_library_initialized:=true;
diff --git a/src/corelib/render/software/agg_font_freetype_lib.pas b/src/corelib/render/software/agg_font_freetype_lib.pas
index a10d03c6..5a5275be 100644
--- a/src/corelib/render/software/agg_font_freetype_lib.pas
+++ b/src/corelib/render/software/agg_font_freetype_lib.pas
@@ -300,7 +300,7 @@ type
function FT_IS_SCALABLE(face : FT_Face_ptr ) : boolean;
function FT_HAS_KERNING(face : FT_Face_ptr ) : boolean;
- function FT_Init_FreeType(alibrary : FT_Library_ptr ) : FT_Error; cdecl; external ft_lib name 'FT_Init_FreeType';
+ function FT_Init_FreeType(var alibrary : FT_Library_ptr ) : FT_Error; cdecl; external ft_lib name 'FT_Init_FreeType';
function FT_Done_FreeType(alibrary : FT_Library_ptr ) : FT_Error; cdecl; external ft_lib name 'FT_Done_FreeType';