From b0265ccd336cafce6865f6f260e9b61d69459b7e Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Tue, 14 Nov 2023 23:32:06 -0500 Subject: [PATCH] [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 ) {