truetype: Extend TrueType GX packed deltas to FT_Offset.

This commit is contained in:
suzuki toshiya 2009-08-01 00:32:19 +09:00
parent 5668181bda
commit ec7bc863fb
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,12 @@
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
truetype: Extend TrueType GX packed deltas to FT_Offset.
* src/truetype/ttgxvar.c (ft_var_readpackeddeltas):
The type of 2nd argument `delta_cnt' is changed from
FT_Int to FT_Offset, because its source can be cvt
table size calculated from stream position.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
truetype: Extend mmvar_len to hold size_t values.

View File

@ -211,12 +211,12 @@
/* */
static FT_Short*
ft_var_readpackeddeltas( FT_Stream stream,
FT_Int delta_cnt )
FT_Offset delta_cnt )
{
FT_Short *deltas;
FT_Int runcnt;
FT_Int i;
FT_Int j;
FT_Offset i;
FT_Offset j;
FT_Memory memory = stream->memory;
FT_Error error = TT_Err_Ok;