From 823fcfa35b9a4cd1a7722a24a38c1148d40e5a03 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 22 Sep 2014 06:45:03 +0200 Subject: [PATCH] Synchronize with FreeType. This corresponds to commit 387a9fe73dabcac45a11a55bb27fa0e8e7d81437, `[autofit] Minor code streamlining.'. --- lib/tahints.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/tahints.c b/lib/tahints.c index bc855d7..1da749d 100644 --- a/lib/tahints.c +++ b/lib/tahints.c @@ -69,7 +69,8 @@ Exit: } -/* get new edge for given axis, direction, and position */ +/* get new edge for given axis, direction, and position, */ +/* without initializing the edge itself */ FT_Error ta_axis_hints_new_edge(TA_AxisHints axis, @@ -131,10 +132,6 @@ ta_axis_hints_new_edge(TA_AxisHints axis, axis->num_edges++; - memset(edge, 0, sizeof (TA_EdgeRec)); - edge->fpos = (FT_Short)fpos; - edge->dir = (FT_Char)dir; - Exit: *anedge = edge; return error; -- 2.11.4.GIT