* src/raster/ftraster.c (Line_To): Tweak idle lines.

This commit is contained in:
Alexei Podtelezhnikov 2026-05-23 22:53:45 -04:00
parent 21a1e58b1c
commit 971d5b3e42

View file

@ -1084,11 +1084,12 @@
TStates state;
if ( y == ras.lastY )
/* skip lines that do not reach another scanline */
if ( FLOOR( y ) == FLOOR( ras.lastY ) &&
CEILING( y ) == CEILING( ras.lastY ) )
goto Fin;
/* First, detect a change of direction */
/* detect a change of direction */
state = ras.lastY < y ? Ascending_State : Descending_State;
if ( ras.state != state )
@ -1103,8 +1104,7 @@
goto Fail;
}
/* Then compute the lines */
/* now compute the lines */
if ( state == Ascending_State )
{
if ( Line_Up( RAS_VARS ras.lastX, ras.lastY,