[raster] Dissolve a loop.

* src/raster/ftraster.c (End_Profile): Set initial `X` here...
(Draw_Sweep): ... instead of here; delay the `start` decrement.
This commit is contained in:
Alexei Podtelezhnikov 2023-11-14 23:32:06 -05:00
parent 6dc2ecb757
commit b0265ccd33

View File

@ -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 )
{