freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 8bbcfb2: [smooth] Clean up worker.


From: Alexei Podtelezhnikov
Subject: [freetype2] master 8bbcfb2: [smooth] Clean up worker.
Date: Thu, 01 Oct 2015 03:10:56 +0000

branch: master
commit 8bbcfb2c2f4fccdb9cbe87fc81503e09cdd0cb8c
Author: Alexei Podtelezhnikov <address@hidden>
Commit: Alexei Podtelezhnikov <address@hidden>

    [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 90f08d7..7e3bb45 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-09-30  Alexei Podtelezhnikov  <address@hidden>
+
+       [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  <address@hidden>
 
        [autofit] Replace `no-base' with `non-base'.
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index 0244716..f461e7a 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 );
   }
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]