summaryrefslogtreecommitdiff
path: root/draw
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-01-11 17:20:29 +0000
committerRobin Watts <robin.watts@artifex.com>2013-01-11 17:22:24 +0000
commit6579012c39f382c0c818189dbc635d61b369f83c (patch)
treef43acf5598af15cd1a778d4aebff858f7358f669 /draw
parente145b71a5a7462660e210d40ada498e01c7407a3 (diff)
downloadmupdf-6579012c39f382c0c818189dbc635d61b369f83c.tar.xz
Bug 693534: 0 bits of antialiasing broken
When I optimised sharp edge rendering back in commit 720859d, I made a mistake that can result in broken renderings. Fixed here. Thanks for Dan Waleke for reporting this.
Diffstat (limited to 'draw')
-rw-r--r--draw/draw_edge.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/draw/draw_edge.c b/draw/draw_edge.c
index 637f9864..9fc21d97 100644
--- a/draw/draw_edge.c
+++ b/draw/draw_edge.c
@@ -933,10 +933,12 @@ fz_scan_convert_sharp(fz_gel *gel, int eofill, fz_bbox clip,
y += height;
else
{
+ int h;
if (height >= clip.y1 - y)
height = clip.y1 - y;
- while (height--)
+ h = height;
+ while (h--)
{
if (eofill)
even_odd_sharp(gel, y, clip, dst, color);