From 8bbcfb2c2f4fccdb9cbe87fc81503e09cdd0cb8c Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Wed, 30 Sep 2015 23:08:53 -0400 Subject: [PATCH] [smooth] Clean up worker. * src/smooth/ftgrays.c (gray_TWorker): Remove lightly used `last_ey'. (gray_start_cell, gray_render_line): Update. --- ChangeLog | 7 +++++++ src/smooth/ftgrays.c | 8 ++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 90f08d766..7e3bb455b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-09-30 Alexei Podtelezhnikov + + [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 [autofit] Replace `no-base' with `non-base'. diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c index 0244716e7..f461e7a15 100644 --- a/src/smooth/ftgrays.c +++ b/src/smooth/ftgrays.c @@ -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 ); }