[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master a35da2c09: * src/raster/ftraster.c (Convert_Glyph): R
From: |
Werner Lemberg |
Subject: |
[freetype2] master a35da2c09: * src/raster/ftraster.c (Convert_Glyph): Remove redundant check. |
Date: |
Wed, 18 Oct 2023 14:44:11 -0400 (EDT) |
branch: master
commit a35da2c09312e222e5728e849988f1acf998df9a
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>
* src/raster/ftraster.c (Convert_Glyph): Remove redundant check.
---
src/raster/ftraster.c | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/src/raster/ftraster.c b/src/raster/ftraster.c
index 7991bb118..44c65d59d 100644
--- a/src/raster/ftraster.c
+++ b/src/raster/ftraster.c
@@ -115,12 +115,12 @@
* a change of direction is detected in the outline, a new profile is
* generated until the end of the outline.
*
- * Note that when all profiles have been generated, the function
- * Finalize_Profile_Table() is used to record, for each profile, its
- * bottom-most scanline as well as the scanline above its upmost
- * boundary. These positions are called `y-turns' because they (sort
- * of) correspond to local extrema. They are stored in a sorted list
- * built from the top of the render pool as a downwards stack:
+ * Note that, for all generated profiles, the function End_Profile()
+ * is used to record their bottom-most scanline as well as the
+ * scanline above its upmost boundary. These positions are called
+ * `y-turns' because they (sort of) correspond to local extrema.
+ * They are stored in a sorted list built from the top of the render
+ * pool as a downwards stack:
*
* _ _ _______________________________________
* | |
@@ -136,7 +136,7 @@
* optimize performance (see technical note on the sweep below).
*
* 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.top--;
- if ( ras.top != ras.cProfile->offset &&
- ( ras.cProfile->flags & Flow_Up ) )
- o = IS_TOP_OVERSHOOT( ras.lastY );
- else
- o = IS_BOTTOM_OVERSHOOT( ras.lastY );
+ o = ras.cProfile->flags & Flow_Up ? IS_TOP_OVERSHOOT( ras.lastY )
+ : IS_BOTTOM_OVERSHOOT( ras.lastY );
+
if ( End_Profile( RAS_VARS o ) )
return FAILURE;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master a35da2c09: * src/raster/ftraster.c (Convert_Glyph): Remove redundant check.,
Werner Lemberg <=