ref: 8bbcfb2c2f4fccdb9cbe87fc81503e09cdd0cb8c
parent: dbd04269dc8c30f1d657c8cdaa622046c3ccf2b2
author: Alexei Podtelezhnikov <[email protected]>
date: Wed Sep 30 19:08:53 EDT 2015
[smooth] Clean up worker. * src/smooth/ftgrays.c (gray_TWorker): Remove lightly used `last_ey'. (gray_start_cell, gray_render_line): Update.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-09-30 Alexei Podtelezhnikov <[email protected]>
+
+ [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 <[email protected]>
[autofit] Replace `no-base' with `non-base'.
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -442,8 +442,6 @@
TCoord cx, cy;
TPos x, y;
- TPos last_ey;
-
FT_Vector bez_stack[32 * 3 + 1];
int lev_stack[32];
@@ -676,7 +674,6 @@
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 @@
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 @@
End:
ras.x = to_x;
ras.y = to_y;
- ras.last_ey = SUBPIXELS( ey2 );
}