Fix `lcd_weights' array size.

* include/freetype/internal/ftobjs.h (FT_LibraryRec): Do it.

Reported by Nikolaus.
This commit is contained in:
Werner Lemberg 2016-11-10 12:03:32 +01:00
parent e1ee5476a4
commit dd26e3d07c
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2016-11-10 Werner Lemberg <wl@gnu.org>
Fix `lcd_weights' array size.
* include/freetype/internal/ftobjs.h (FT_LibraryRec): Do it.
Reported by Nikolaus.
2016-11-06 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (FT_Render_Glyph_Internal): Fix tracing.

View File

@ -875,7 +875,7 @@ FT_BEGIN_HEADER
#ifdef FT_CONFIG_OPTION_SUBPIXEL_RENDERING
FT_LcdFilter lcd_filter;
FT_Int lcd_extra; /* number of extra pixels */
FT_Byte lcd_weights[7]; /* filter weights, if any */
FT_Byte lcd_weights[5]; /* filter weights, if any */
FT_Bitmap_LcdFilterFunc lcd_filter_func; /* filtering callback */
#endif