summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2012-11-12 11:01:07 +0100
committerWerner Lemberg <wl@gnu.org>2012-11-12 11:01:07 +0100
commit1a37e4174bf2a4353b5b6dc2e089eb0765c1dc8f (patch)
tree44e0a1479e2925d8d1cd894265f79709ef6e19b9
parentf966da825c48fca86f239071789391246837ade9 (diff)
downloadfreetype2-1a37e4174bf2a4353b5b6dc2e089eb0765c1dc8f.tar.gz
[autofit] Minor improvement.
* src/autofit/aflatin.c (af_latin_hints_compute_blue_edges): Fix loop.
-rw-r--r--ChangeLog7
-rw-r--r--src/autofit/aflatin.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9fa082170..98ef6692f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-11-12 Werner Lemberg <wl@gnu.org>
+
+ [autofit] Minor improvement.
+
+ * src/autofit/aflatin.c (af_latin_hints_compute_blue_edges): Fix
+ loop.
+
2012-11-10 Werner Lemberg <wl@gnu.org>
[autofit] Improve tracing.
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index ee9294730..f011d0aee 100644
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -1409,7 +1409,7 @@
/* for each horizontal edge search the blue zone which is closest */
for ( ; edge < edge_limit; edge++ )
{
- FT_Int bb;
+ FT_UInt bb;
AF_Width best_blue = NULL;
FT_Pos best_dist; /* initial threshold */
@@ -1422,7 +1422,7 @@
if ( best_dist > 64 / 2 )
best_dist = 64 / 2;
- for ( bb = 0; bb < AF_LATIN_BLUE_MAX; bb++ )
+ for ( bb = 0; bb < latin->blue_count; bb++ )
{
AF_LatinBlue blue = latin->blues + bb;
FT_Bool is_top_blue, is_major_dir;