diff options
Diffstat (limited to 'draw')
-rw-r--r-- | draw/draw_edge.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/draw/draw_edge.c b/draw/draw_edge.c index 9d595cf4..637f9864 100644 --- a/draw/draw_edge.c +++ b/draw/draw_edge.c @@ -904,32 +904,32 @@ fz_scan_convert_sharp(fz_gel *gel, int eofill, fz_bbox clip, { int e = 0; int y = gel->edges[0].y; - int height; + int height; + + gel->alen = 0; - gel->alen = 0; - /* Skip any lines before the clip region */ - if (y < clip.y0) + if (y < clip.y0) { while (gel->alen > 0 || e < gel->len) { height = insert_active(gel, y, &e); y += height; - if (y >= clip.y0) + if (y >= clip.y0) { height -= y - clip.y0; y = clip.y0; break; } - } + } } - /* Now process as lines within the clip region */ + /* Now process as lines within the clip region */ while (gel->alen > 0 || e < gel->len) { height = insert_active(gel, y, &e); - if (gel->alen == 0) + if (gel->alen == 0) y += height; else { @@ -944,7 +944,7 @@ fz_scan_convert_sharp(fz_gel *gel, int eofill, fz_bbox clip, non_zero_winding_sharp(gel, y, clip, dst, color); y++; } - } + } if (y >= clip.y1) break; |