From 971d5b3e42d20a899e23f727688cd396dfbeece3 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Sat, 23 May 2026 22:53:45 -0400 Subject: [PATCH] * src/raster/ftraster.c (Line_To): Tweak idle lines. --- src/raster/ftraster.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/raster/ftraster.c b/src/raster/ftraster.c index 0e860b3ec..a4ff056ab 100644 --- a/src/raster/ftraster.c +++ b/src/raster/ftraster.c @@ -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,