freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] compiler error


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 );
  }



mvh., (sincerely)
Søren Grønbech


reply via email to

[Prev in Thread] Current Thread [Next in Thread]