freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master b0265ccd3 2/2: [raster] Dissolve a loop.


From: Werner Lemberg
Subject: [freetype2] master b0265ccd3 2/2: [raster] Dissolve a loop.
Date: Tue, 14 Nov 2023 23:42:07 -0500 (EST)

branch: master
commit b0265ccd336cafce6865f6f260e9b61d69459b7e
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    [raster] Dissolve a loop.
    
    * src/raster/ftraster.c (End_Profile): Set initial `X` here...
    (Draw_Sweep): ... instead of here; delay the `start` decrement.
---
 src/raster/ftraster.c | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/src/raster/ftraster.c b/src/raster/ftraster.c
index 26e85d767..5dee0128c 100644
--- a/src/raster/ftraster.c
+++ b/src/raster/ftraster.c
@@ -752,6 +752,8 @@
         p->offset = h - 1;
       }
 
+      p->X = p->x[p->offset];
+
       if ( Insert_Y_Turn( RAS_VARS bottom ) ||
            Insert_Y_Turn( RAS_VARS top )    )
         return FAILURE;
@@ -2463,21 +2465,10 @@
 
     ras.Proc_Sweep_Init( RAS_VARS min_Y, max_Y );
 
-    /* set the activation countdowns and the initial positions */
-
-    P = waiting;
-    while ( P )
-    {
-      P->start -= min_Y;
-      P->X      = P->x[P->offset];
-
-      P = P->link;
-    }
-
     /* let's go, iterating through y_turns */
 
     y        = min_Y;
-    y_height = 0;
+    y_height = min_Y;
 
     while ( ++ras.maxBuff < ras.sizeBuff )
     {



reply via email to

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