[type1] Minor code shuffling.

* src/type1/t1load.c (T1_Set_MM_Blend): Make it a wrapper of...
(t1_set_mm_blend): ...this new function.
(T1_Set_MM_Design): Use `t1_set_mm_blend'.
This commit is contained in:
Werner Lemberg 2017-10-07 10:35:11 +02:00
parent c3083e4595
commit f06456a82d
2 changed files with 20 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2017-10-07 Werner Lemberg <wl@gnu.org>
[type1] Minor code shuffling.
* src/type1/t1load.c (T1_Set_MM_Blend): Make it a wrapper of...
(t1_set_mm_blend): ...this new function.
(T1_Set_MM_Design): Use `t1_set_mm_blend'.
2017-10-05 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (ft_glyphslot_preset_bitmap): Fix integer

View File

@ -366,8 +366,8 @@
}
FT_LOCAL_DEF( FT_Error )
T1_Set_MM_Blend( T1_Face face,
static FT_Error
t1_set_mm_blend( T1_Face face,
FT_UInt num_coords,
FT_Fixed* coords )
{
@ -412,6 +412,15 @@
}
FT_LOCAL_DEF( FT_Error )
T1_Set_MM_Blend( T1_Face face,
FT_UInt num_coords,
FT_Fixed* coords )
{
return t1_set_mm_blend( face, num_coords, coords );
}
FT_LOCAL_DEF( FT_Error )
T1_Get_MM_Blend( T1_Face face,
FT_UInt num_coords,
@ -518,7 +527,7 @@
final_blends[n] = the_blend;
}
return T1_Set_MM_Blend( face, blend->num_axis, final_blends );
return t1_set_mm_blend( face, blend->num_axis, final_blends );
}