From 29f09279714f4f9b81d9b5488072860142f86f24 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 16 Jan 2013 16:03:20 +0100 Subject: Pass content/clip bbox to device functions by value. --- xps/xps_path.c | 6 +++--- xps/xps_tile.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'xps') diff --git a/xps/xps_path.c b/xps/xps_path.c index 54acc114..838bb123 100644 --- a/xps/xps_path.c +++ b/xps/xps_path.c @@ -781,7 +781,7 @@ xps_clip(xps_document *doc, fz_matrix ctm, xps_resource *dict, char *clip_att, f path = xps_parse_path_geometry(doc, dict, clip_tag, 0, &fill_rule); else path = fz_new_path(doc->ctx); - fz_clip_path(doc->dev, path, NULL, fill_rule == 0, ctm); + fz_clip_path(doc->dev, path, fz_infinite_rect, fill_rule == 0, ctm); fz_free_path(doc->ctx, path); } @@ -1016,7 +1016,7 @@ xps_parse_path(xps_document *doc, fz_matrix ctm, char *base_uri, xps_resource *d if (fill_tag) { - fz_clip_path(doc->dev, path, NULL, fill_rule == 0, ctm); + fz_clip_path(doc->dev, path, fz_infinite_rect, fill_rule == 0, ctm); xps_parse_brush(doc, ctm, area, fill_uri, dict, fill_tag); fz_pop_clip(doc->dev); } @@ -1034,7 +1034,7 @@ xps_parse_path(xps_document *doc, fz_matrix ctm, char *base_uri, xps_resource *d if (stroke_tag) { - fz_clip_stroke_path(doc->dev, stroke_path, NULL, stroke, ctm); + fz_clip_stroke_path(doc->dev, stroke_path, fz_infinite_rect, stroke, ctm); xps_parse_brush(doc, ctm, area, stroke_uri, dict, stroke_tag); fz_pop_clip(doc->dev); } diff --git a/xps/xps_tile.c b/xps/xps_tile.c index 7c1ed933..e8c0b263 100644 --- a/xps/xps_tile.c +++ b/xps/xps_tile.c @@ -27,7 +27,7 @@ xps_paint_tiling_brush_clipped(xps_document *doc, fz_matrix ctm, fz_rect viewbox fz_lineto(doc->ctx, path, viewbox.x1, viewbox.y1); fz_lineto(doc->ctx, path, viewbox.x1, viewbox.y0); fz_closepath(doc->ctx, path); - fz_clip_path(doc->dev, path, NULL, 0, ctm); + fz_clip_path(doc->dev, path, fz_infinite_rect, 0, ctm); fz_free_path(doc->ctx, path); c->func(doc, ctm, viewbox, c->base_uri, c->dict, c->root, c->user); fz_pop_clip(doc->dev); -- cgit v1.2.3