summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/raster/ftraster.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/raster/ftraster.c b/src/raster/ftraster.c
index 9638dfb0..a6d3179b 100644
--- a/src/raster/ftraster.c
+++ b/src/raster/ftraster.c
@@ -2403,6 +2403,11 @@
return; /* no drop-out control */
}
+ /* undocumented but confirmed: If the drop-out would result in a */
+ /* pixel outside of the bounding box, use the right pixel instead */
+ if ( pxl < 0 )
+ pxl = e1;
+
/* check that the other pixel isn't set */
e1 = pxl == e1 ? e2 : e1;
@@ -2579,6 +2584,11 @@
return; /* no drop-out control */
}
+ /* undocumented but confirmed: If the drop-out would result in a */
+ /* pixel outside of the bounding box, use the top pixel instead */
+ if ( pxl < 0 )
+ pxl = e1;
+
/* check that the other pixel isn't set */
e1 = pxl == e1 ? e2 : e1;