ref: f193637f63738eb451a6a23be70d763e78bc0c11
parent: d9b4470e39a6799e49d3f383273d52a075f0bf3f
author: Werner Lemberg <[email protected]>
date: Wed Apr 23 04:22:33 EDT 2014
* src/raster/ftraster.c (Vertical_Sweep_Span): Use drop-out mode. This spot has been missed while introducing support for various drop-out modes years ago (including no drop-out mode, which this commit fixes). Problem reported by Patrick Thomas <[email protected]>.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2014-04-23 Werner Lemberg <[email protected]>
+
+ * src/raster/ftraster.c (Vertical_Sweep_Span): Use drop-out mode.
+
+ This spot has been missed while introducing support for various
+ drop-out modes years ago (including no drop-out mode, which this
+ commit fixes).
+
+ Problem reported by Patrick Thomas <[email protected]>.
+
2014-04-22 Werner Lemberg <[email protected]>
* src/sfnt/pngshim.c (error_callback): s/longjmp/ft_longjmp/.
--- a/src/raster/ftraster.c
+++ b/src/raster/ftraster.c
@@ -2284,6 +2284,8 @@
Long e1, e2;
Byte* target;
+ Int dropOutControl = left->flags & 7;
+
FT_UNUSED( y );
FT_UNUSED( left );
FT_UNUSED( right );
@@ -2293,7 +2295,8 @@
e1 = TRUNC( CEILING( x1 ) );
- if ( x2 - x1 - ras.precision <= ras.precision_jitter )
+ if ( x2 - x1 - ras.precision <= ras.precision_jitter &&
+ dropOutControl != 2 )
e2 = e1;
else
e2 = TRUNC( FLOOR( x2 ) );