From 6579012c39f382c0c818189dbc635d61b369f83c Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 11 Jan 2013 17:20:29 +0000 Subject: 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. --- draw/draw_edge.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3