Fix parameter handling of `FT_Set_Renderer'.

Reported by Kirill Tishin <siege@bk.ru>.

* src/base/ftobjs.c (FT_Set_Renderer): Increment `parameters'.
This commit is contained in:
Werner Lemberg 2010-12-13 20:17:26 +01:00
parent 396b11b840
commit 312d26a491
3 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2010-12-13 Werner Lemberg <wl@gnu.org>
Fix parameter handling of `FT_Set_Renderer'.
Reported by Kirill Tishin <siege@bk.ru>.
* src/base/ftobjs.c (FT_Set_Renderer): Increment `parameters'.
2010-12-09 Werner Lemberg <wl@gnu.org>
[cff] Allow `hlineto' and `vlineto' without arguments.

View File

@ -212,6 +212,14 @@ FT_BEGIN_HEADER
/* */
/* This doesn't change the current renderer for other formats. */
/* */
/* Currently, only the B/W renderer, if compiled with */
/* FT_RASTER_OPTION_ANTI_ALIASING (providing a 5-levels */
/* anti-aliasing mode; this option must be set directly in */
/* `ftraster.c' and is undefined by default) accepts a single tag */
/* `pal5' to set its gray palette as a character string with */
/* 5~elements. Consequently, the third and fourth argument are zero */
/* normally. */
/* */
FT_EXPORT( FT_Error )
FT_Set_Renderer( FT_Library library,
FT_Renderer renderer,

View File

@ -3887,6 +3887,7 @@
error = set_mode( renderer, parameters->tag, parameters->data );
if ( error )
break;
parameters++;
}
}