[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master 614a8f1: * src/autofit/afhints.c (af_glyph_hints_relo
From: |
Werner LEMBERG |
Subject: |
[freetype2] master 614a8f1: * src/autofit/afhints.c (af_glyph_hints_reload): Thinko. |
Date: |
Mon, 21 Mar 2016 18:39:37 +0000 |
branch: master
commit 614a8f17c7bd931e99ebbf70308fe75ee27eb8e7
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>
* src/autofit/afhints.c (af_glyph_hints_reload): Thinko.
This fixes the previous commit to this file.
---
ChangeLog | 6 ++++++
src/autofit/afhints.c | 14 +++++---------
2 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 67a0150..5f25e3e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-03-21 Werner Lemberg <address@hidden>
+
+ * src/autofit/afhints.c (af_glyph_hints_reload): Thinko.
+
+ This fixes the previous commit to this file.
+
2016-03-21 Alexei Podtelezhnikov <address@hidden>
[smooth] Partly revert recent changes.
diff --git a/src/autofit/afhints.c b/src/autofit/afhints.c
index dadeccb..6c3d032 100644
--- a/src/autofit/afhints.c
+++ b/src/autofit/afhints.c
@@ -831,9 +831,6 @@
FT_Int contour_index = 0;
- end->fx = (FT_Short)vec[endpoint].x;
- end->fy = (FT_Short)vec[endpoint].y;
-
for ( point = points; point < point_limit; point++, vec++, tag++ )
{
FT_Pos out_x, out_y;
@@ -847,6 +844,9 @@
point->ox = point->x = FT_MulFix( vec->x, x_scale ) + x_delta;
point->oy = point->y = FT_MulFix( vec->y, y_scale ) + y_delta;
+ end->fx = (FT_Short)outline->points[endpoint].x;
+ end->fy = (FT_Short)outline->points[endpoint].y;
+
switch ( FT_CURVE_TAG( *tag ) )
{
case FT_CURVE_TAG_CONIC:
@@ -874,12 +874,8 @@
if ( ++contour_index < outline->n_contours )
{
endpoint = outline->contours[contour_index];
-
- end = points + endpoint;
- prev = end;
-
- end->fx = (FT_Short)vec[endpoint].x;
- end->fy = (FT_Short)vec[endpoint].y;
+ end = points + endpoint;
+ prev = end;
}
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master 614a8f1: * src/autofit/afhints.c (af_glyph_hints_reload): Thinko.,
Werner LEMBERG <=