From f40106ac6b7367292432ee7af61608548d490e8c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 29 Jun 2018 17:26:27 +0200 Subject: Pass rects by value: device and document interface. --- source/xps/xps-tile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/xps/xps-tile.c') diff --git a/source/xps/xps-tile.c b/source/xps/xps-tile.c index 83903dd2..7def81c9 100644 --- a/source/xps/xps-tile.c +++ b/source/xps/xps-tile.c @@ -33,7 +33,7 @@ xps_paint_tiling_brush_clipped(fz_context *ctx, xps_document *doc, fz_matrix ctm fz_lineto(ctx, path, viewbox.x1, viewbox.y1); fz_lineto(ctx, path, viewbox.x1, viewbox.y0); fz_closepath(ctx, path); - fz_clip_path(ctx, dev, path, 0, ctm, NULL); + fz_clip_path(ctx, dev, path, 0, ctm, fz_infinite_rect); fz_drop_path(ctx, path); c->func(ctx, doc, ctm, viewbox, c->base_uri, c->dict, c->root, c->user); fz_pop_clip(ctx, dev); @@ -183,7 +183,7 @@ xps_parse_tiling_brush(fz_context *ctx, xps_document *doc, fz_matrix ctm, fz_rec fz_rect bigview = viewbox; bigview.x1 = bigview.x0 + xstep; bigview.y1 = bigview.y0 + ystep; - fz_begin_tile(ctx, dev, &area, &bigview, xstep, ystep, ctm); + fz_begin_tile(ctx, dev, area, bigview, xstep, ystep, ctm); xps_paint_tiling_brush(ctx, doc, ctm, viewbox, tile_mode, &c); fz_end_tile(ctx, dev); } -- cgit v1.2.3