Minor refactoring.

This commit is contained in:
Alexei Podtelezhnikov 2015-08-30 22:50:48 -04:00
parent 633d8ed2c9
commit 6ec0434ec9
1 changed files with 5 additions and 5 deletions

View File

@ -942,8 +942,8 @@
l_in = 0;
last = outline->contours[c];
/* Counter i cycles though the points; counter j advances only */
/* if points are moved; anchor k marks the first moved point. */
/* Counter j cycles though the points; counter i advances only */
/* when points are moved; anchor k marks the first moved point. */
for ( i = last, j = first, k = -1;
j != i && i != k;
j = j < last ? j + 1 : first )
@ -953,6 +953,9 @@
out.x = points[j].x - points[i].x;
out.y = points[j].y - points[i].y;
l_out = FT_Vector_NormLen( &out );
if ( l_out == 0 )
continue;
}
else
{
@ -960,9 +963,6 @@
l_out = l_anchor;
}
if ( l_out == 0 )
continue;
if ( l_in != 0 )
{
if ( k < 0 )