mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-25 09:38:14 +02:00
* src/raster/ftraster.c (Line_To): Tweak idle lines.
This commit is contained in:
parent
21a1e58b1c
commit
971d5b3e42
1 changed files with 5 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue