|
From: | Søren Grønbech |
Subject: | [ft-devel] compiler error |
Date: | Wed, 29 Jun 2005 15:50:56 +0200 |
Hi all
I'm using Metrowerks Codewarrior 9.4
when compiling ftglyph.c, this
function
FT_CALLBACK_DEF( void )
ft_outline_glyph_transform( FT_Glyph outline_glyph, const FT_Matrix* matrix, const FT_Vector* delta ) { FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph; if ( matrix ) FT_Outline_Transform( &glyph->outline, matrix ); if ( delta )
FT_Outline_Translate( &glyph->outline, delta->x, delta->y ); } gives this error
Error : illegal implicit conversion
from 'void (*)(struct FT_GlyphRec_ *, const struct FT_Matrix_ *, const struct
FT_Vector_ *)' to
'void (*)(struct FT_GlyphRec_ *, struct FT_Matrix_ *, struct FT_Vector_ *)' ftglyph.c line 346 ft_outline_glyph_transform, so I changed it to (removed const)
FT_CALLBACK_DEF( void )
ft_outline_glyph_transform( FT_Glyph outline_glyph, FT_Matrix* matrix, FT_Vector* delta ) { FT_OutlineGlyph glyph = (FT_OutlineGlyph)outline_glyph; if ( matrix ) FT_Outline_Transform( &glyph->outline, matrix ); if ( delta )
FT_Outline_Translate( &glyph->outline, delta->x, delta->y ); }
|
[Prev in Thread] | Current Thread | [Next in Thread] |