When I undefine FT_RASTER_OPTION_ANTI_ALIASING, I get compile error on
VC (MinGW is correct):

src\raster\ftraster.c(3178) : error C2143: syntax error : missing ';'
before 'type'
src\raster\ftraster.c(3182) : error C2065: 'n' : undeclared identifier
src\raster\ftraster.c(3182) : error C2065: 'n' : undeclared identifier
src\raster\ftraster.c(3182) : error C2065: 'n' : undeclared identifier
src\raster\ftraster.c(3183) : error C2065: 'n' : undeclared identifier
src\raster\ftraster.c(3183) : error C2065: 'n' : undeclared identifier

To solve this error, modify the function ft_black_init() to:

-- ft_black_init() start --

  static void
  ft_black_init( PRaster  raster )
  {
#ifdef FT_RASTER_OPTION_ANTI_ALIASING

    FT_UInt  n;


    /* set default 5-levels gray palette */
    for ( n = 0; n < 5; n++ )
      raster->grays[n] = n * 255 / 4;

    raster->gray_width = RASTER_GRAY_LINES / 2;

#else

    FT_UNUSED( raster );

#endif
  }

-- ft_black_init() end --


Allan


_______________________________________________
Freetype-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to