summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-01-16 16:03:20 +0100
committerTor Andersson <tor.andersson@artifex.com>2013-01-30 14:07:21 +0100
commit29f09279714f4f9b81d9b5488072860142f86f24 (patch)
tree6a26bf5f77028bb5637b1ec3430660af801688e5 /pdf
parentddb92b7c3fdfcf9bf3d7463dde4e662ca10f79ba (diff)
downloadmupdf-29f09279714f4f9b81d9b5488072860142f86f24.tar.xz
Pass content/clip bbox to device functions by value.
Diffstat (limited to 'pdf')
-rw-r--r--pdf/pdf_interpret.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c
index d181fdfa..5f4fffc1 100644
--- a/pdf/pdf_interpret.c
+++ b/pdf/pdf_interpret.c
@@ -415,7 +415,7 @@ pdf_show_image(pdf_csi *csi, fz_image *image)
/* apply blend group even though we skip the soft mask */
if (gstate->blendmode)
fz_begin_group(csi->dev, bbox, 0, 0, gstate->blendmode, 1);
- fz_clip_image_mask(csi->dev, image->mask, &bbox, image_ctm);
+ fz_clip_image_mask(csi->dev, image->mask, bbox, image_ctm);
}
else
pdf_begin_group(csi, bbox);
@@ -434,7 +434,7 @@ pdf_show_image(pdf_csi *csi, fz_image *image)
case PDF_MAT_PATTERN:
if (gstate->fill.pattern)
{
- fz_clip_image_mask(csi->dev, image, &bbox, image_ctm);
+ fz_clip_image_mask(csi->dev, image, bbox, image_ctm);
pdf_show_pattern(csi, gstate->fill.pattern, bbox, PDF_FILL);
fz_pop_clip(csi->dev);
}
@@ -442,7 +442,7 @@ pdf_show_image(pdf_csi *csi, fz_image *image)
case PDF_MAT_SHADE:
if (gstate->fill.shade)
{
- fz_clip_image_mask(csi->dev, image, &bbox, image_ctm);
+ fz_clip_image_mask(csi->dev, image, bbox, image_ctm);
fz_fill_shade(csi->dev, gstate->fill.shade, gstate->ctm, gstate->fill.alpha);
fz_pop_clip(csi->dev);
}
@@ -501,7 +501,7 @@ pdf_show_path(pdf_csi *csi, int doclose, int dofill, int dostroke, int even_odd)
if (csi->clip)
{
gstate->clip_depth++;
- fz_clip_path(csi->dev, path, NULL, csi->clip_even_odd, gstate->ctm);
+ fz_clip_path(csi->dev, path, fz_infinite_rect, csi->clip_even_odd, gstate->ctm);
csi->clip = 0;
}
@@ -524,7 +524,7 @@ pdf_show_path(pdf_csi *csi, int doclose, int dofill, int dostroke, int even_odd)
case PDF_MAT_PATTERN:
if (gstate->fill.pattern)
{
- fz_clip_path(csi->dev, path, NULL, even_odd, gstate->ctm);
+ fz_clip_path(csi->dev, path, fz_infinite_rect, even_odd, gstate->ctm);
pdf_show_pattern(csi, gstate->fill.pattern, bbox, PDF_FILL);
fz_pop_clip(csi->dev);
}
@@ -532,7 +532,7 @@ pdf_show_path(pdf_csi *csi, int doclose, int dofill, int dostroke, int even_odd)
case PDF_MAT_SHADE:
if (gstate->fill.shade)
{
- fz_clip_path(csi->dev, path, NULL, even_odd, gstate->ctm);
+ fz_clip_path(csi->dev, path, fz_infinite_rect, even_odd, gstate->ctm);
fz_fill_shade(csi->dev, gstate->fill.shade, csi->top_ctm, gstate->fill.alpha);
fz_pop_clip(csi->dev);
}
@@ -553,7 +553,7 @@ pdf_show_path(pdf_csi *csi, int doclose, int dofill, int dostroke, int even_odd)
case PDF_MAT_PATTERN:
if (gstate->stroke.pattern)
{
- fz_clip_stroke_path(csi->dev, path, &bbox, gstate->stroke_state, gstate->ctm);
+ fz_clip_stroke_path(csi->dev, path, bbox, gstate->stroke_state, gstate->ctm);
pdf_show_pattern(csi, gstate->stroke.pattern, bbox, PDF_STROKE);
fz_pop_clip(csi->dev);
}
@@ -561,7 +561,7 @@ pdf_show_path(pdf_csi *csi, int doclose, int dofill, int dostroke, int even_odd)
case PDF_MAT_SHADE:
if (gstate->stroke.shade)
{
- fz_clip_stroke_path(csi->dev, path, &bbox, gstate->stroke_state, gstate->ctm);
+ fz_clip_stroke_path(csi->dev, path, bbox, gstate->stroke_state, gstate->ctm);
fz_fill_shade(csi->dev, gstate->stroke.shade, csi->top_ctm, gstate->stroke.alpha);
fz_pop_clip(csi->dev);
}