summaryrefslogtreecommitdiff
path: root/draw/draw_edge.c
diff options
context:
space:
mode:
Diffstat (limited to 'draw/draw_edge.c')
-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);