[smooth] Clean up worker.

* src/smooth/ftgrays.c (gray_TWorker): Remove lightly used `last_ey'.
(gray_start_cell, gray_render_line): Update.
This commit is contained in:
Alexei Podtelezhnikov 2015-09-30 23:08:53 -04:00
parent dbd04269dc
commit 8bbcfb2c2f
2 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2015-09-30 Alexei Podtelezhnikov <apodtele@gmail.com>
[smooth] Clean up worker.
* src/smooth/ftgrays.c (gray_TWorker): Remove lightly used `last_ey'.
(gray_start_cell, gray_render_line): Update.
2015-09-30 Werner Lemberg <wl@gnu.org>
[autofit] Replace `no-base' with `non-base'.

View File

@ -442,8 +442,6 @@ typedef ptrdiff_t FT_PtrDist;
TCoord cx, cy;
TPos x, y;
TPos last_ey;
FT_Vector bez_stack[32 * 3 + 1];
int lev_stack[32];
@ -676,7 +674,6 @@ typedef ptrdiff_t FT_PtrDist;
ras.cover = 0;
ras.ex = ex - ras.min_ex;
ras.ey = ey - ras.min_ey;
ras.last_ey = SUBPIXELS( ey );
ras.invalid = 0;
gray_set_cell( RAS_VAR_ ex, ey );
@ -795,9 +792,9 @@ typedef ptrdiff_t FT_PtrDist;
int delta, rem, lift, incr;
ey1 = TRUNC( ras.last_ey );
ey1 = TRUNC( ras.y );
ey2 = TRUNC( to_y ); /* if (ey2 >= ras.max_ey) ey2 = ras.max_ey-1; */
fy1 = (TCoord)( ras.y - ras.last_ey );
fy1 = (TCoord)( ras.y - SUBPIXELS( ey1 ) );
fy2 = (TCoord)( to_y - SUBPIXELS( ey2 ) );
dx = to_x - ras.x;
@ -912,7 +909,6 @@ typedef ptrdiff_t FT_PtrDist;
End:
ras.x = to_x;
ras.y = to_y;
ras.last_ey = SUBPIXELS( ey2 );
}