Commit f06456a82d5751d637a7e2cea21e4c71d2c8d2db

Werner Lemberg 2017-10-07T10:35:11

[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'.

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 );
   }