[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'.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
diff --git a/ChangeLog b/ChangeLog
index f131f2f..1ed0a4c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/src/type1/t1load.c b/src/type1/t1load.c
index f569d6b..54c8b60 100644
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -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 )
{
@@ -413,6 +413,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,
FT_Fixed* 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 );
}