* src/autofit/afhints.c (af_glyph_hints_reload): Use do-while loop.

This commit is contained in:
Alexei Podtelezhnikov 2015-04-03 22:38:11 -04:00
parent 770b5d0647
commit 67b912d2fa
2 changed files with 9 additions and 10 deletions

View File

@ -1,3 +1,7 @@
2015-04-03 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/autofit/afhints.c (af_glyph_hints_reload): Use do-while loop.
2015-04-02 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/autofit/aflatin.c (af_latin_hint_edges): Reduce logic.

View File

@ -792,8 +792,6 @@
FT_Pos out_x, out_y;
FT_Bool is_first;
/* since the first point of a contour could be part of a */
/* series of near points, go backwards to find the first */
@ -844,17 +842,13 @@
out_x = 0;
out_y = 0;
is_first = 1;
for ( point = first;
point != first || is_first;
point = point->next )
next = first;
do
{
AF_Direction out_dir;
is_first = 0;
point = next;
next = point->next;
out_x += next->fx - point->fx;
@ -886,7 +880,8 @@
out_x = 0;
out_y = 0;
}
} while ( next != first );
}
/*