* src/raster/ftraster.c (Convert_Glyph): Remove redundant check.

This commit is contained in:
Alexei Podtelezhnikov 2023-10-18 18:44:00 +00:00
parent 3fa5c84565
commit a35da2c093
1 changed files with 10 additions and 12 deletions

View File

@ -115,12 +115,12 @@
* a change of direction is detected in the outline, a new profile is * a change of direction is detected in the outline, a new profile is
* generated until the end of the outline. * generated until the end of the outline.
* *
* Note that when all profiles have been generated, the function * Note that, for all generated profiles, the function End_Profile()
* Finalize_Profile_Table() is used to record, for each profile, its * is used to record their bottom-most scanline as well as the
* bottom-most scanline as well as the scanline above its upmost * scanline above its upmost boundary. These positions are called
* boundary. These positions are called `y-turns' because they (sort * `y-turns' because they (sort of) correspond to local extrema.
* of) correspond to local extrema. They are stored in a sorted list * They are stored in a sorted list built from the top of the render
* built from the top of the render pool as a downwards stack: * pool as a downwards stack:
* *
* _ _ _______________________________________ * _ _ _______________________________________
* | | * | |
@ -136,7 +136,7 @@
* optimize performance (see technical note on the sweep below). * optimize performance (see technical note on the sweep below).
* *
* Of course, the raster detects whether the two stacks collide and * Of course, the raster detects whether the two stacks collide and
* handles the situation properly. * handles the situation by bisecting the job and restarting.
* *
*/ */
@ -1984,11 +1984,9 @@
( ras.cProfile->flags & Flow_Up ) ) ( ras.cProfile->flags & Flow_Up ) )
ras.top--; ras.top--;
if ( ras.top != ras.cProfile->offset && o = ras.cProfile->flags & Flow_Up ? IS_TOP_OVERSHOOT( ras.lastY )
( ras.cProfile->flags & Flow_Up ) ) : IS_BOTTOM_OVERSHOOT( ras.lastY );
o = IS_TOP_OVERSHOOT( ras.lastY );
else
o = IS_BOTTOM_OVERSHOOT( ras.lastY );
if ( End_Profile( RAS_VARS o ) ) if ( End_Profile( RAS_VARS o ) )
return FAILURE; return FAILURE;