* src/raster/ftraster.c (count_table): Make it conditional.

* src/base/ftobjs.c (FT_New_Library): Check FT_RENDER_POOL_SIZE with
a preprocessor statement.
This commit is contained in:
Werner Lemberg 2007-07-28 05:40:40 +00:00
parent 71dd687310
commit 39c91ad444
3 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2007-07-28 Werner Lemberg <wl@gnu.org>
* src/raster/ftraster.c (count_table): Make it conditional.
* src/base/ftobjs.c (FT_New_Library): Check FT_RENDER_POOL_SIZE with
a preprocessor statement.
2007-07-27 Werner Lemberg <wl@gnu.org>
* src/base/ftoutln.c (FT_Outline_Translate): Check `outline' before

View File

@ -3726,9 +3726,10 @@
/* allocate the render pool */
library->raster_pool_size = FT_RENDER_POOL_SIZE;
if ( FT_RENDER_POOL_SIZE > 0 )
if ( FT_ALLOC( library->raster_pool, FT_RENDER_POOL_SIZE ) )
goto Fail;
#if FT_RENDER_POOL_SIZE > 0
if ( FT_ALLOC( library->raster_pool, FT_RENDER_POOL_SIZE ) )
goto Fail;
#endif
/* That's ok now */
*alibrary = library;

View File

@ -543,6 +543,8 @@
#endif /* FT_STATIC_RASTER */
#ifdef FT_RASTER_OPTION_ANTI_ALIASING
static const char count_table[256] =
{
0 , 1 , 1 , 2 , 1 , 2 , 2 , 3 , 1 , 2 , 2 , 3 , 2 , 3 , 3 , 4,
@ -562,6 +564,8 @@ static const char count_table[256] =
3 , 4 , 4 , 5 , 4 , 5 , 5 , 6 , 4 , 5 , 5 , 6 , 5 , 6 , 6 , 7,
4 , 5 , 5 , 6 , 5 , 6 , 6 , 7 , 5 , 6 , 6 , 7 , 6 , 7 , 7 , 8 };
#endif /* FT_RASTER_OPTION_ANTI_ALIASING */
/*************************************************************************/