summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-07-23 17:41:28 +0200
committerTor Andersson <tor.andersson@artifex.com>2013-07-24 15:25:27 +0200
commit9914f383f7193980c8bc5b910de4e2e429283d29 (patch)
tree74adac9a045cf609bc30871a46470a0d71b6ab7d /source/fitz
parentf7ab3f0f7f3026428aaaeadec9a8e447b4a97000 (diff)
downloadmupdf-9914f383f7193980c8bc5b910de4e2e429283d29.tar.xz
Fix MIN/MAX confusion in edge list clipping.
The case with infinite scissor didn't work.
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/draw-edge.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fitz/draw-edge.c b/source/fitz/draw-edge.c
index 5f2f45d3..7809de78 100644
--- a/source/fitz/draw-edge.c
+++ b/source/fitz/draw-edge.c
@@ -182,8 +182,8 @@ fz_new_gel(fz_context *ctx)
gel->len = 0;
gel->edges = fz_malloc_array(ctx, gel->cap, sizeof(fz_edge));
- gel->clip.x0 = gel->clip.y0 = BBOX_MAX;
- gel->clip.x1 = gel->clip.y1 = BBOX_MIN;
+ gel->clip.x0 = gel->clip.y0 = BBOX_MIN;
+ gel->clip.x1 = gel->clip.y1 = BBOX_MAX;
gel->bbox.x0 = gel->bbox.y0 = BBOX_MAX;
gel->bbox.x1 = gel->bbox.y1 = BBOX_MIN;
@@ -210,8 +210,8 @@ fz_reset_gel(fz_gel *gel, const fz_irect *clip)
if (fz_is_infinite_irect(clip))
{
- gel->clip.x0 = gel->clip.y0 = BBOX_MAX;
- gel->clip.x1 = gel->clip.y1 = BBOX_MIN;
+ gel->clip.x0 = gel->clip.y0 = BBOX_MIN;
+ gel->clip.x1 = gel->clip.y1 = BBOX_MAX;
}
else {
gel->clip.x0 = clip->x0 * fz_aa_hscale;