diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-02-24 13:03:01 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-02-24 13:03:01 +0100 |
commit | 35181e818efdc219a8fccf8479a73fa2b5db640f (patch) | |
tree | 111f0cf83b3c06e6d6992f95bc3f09a0c132e435 /source/xps/xps-tile.c | |
parent | 7fd83ca9b3c58bc3156611e2ad9349be9ef94718 (diff) | |
download | mupdf-35181e818efdc219a8fccf8479a73fa2b5db640f.tar.xz |
Clarify scissor argument to clip device functions.
The scissor argument is an optional (potentially NULL) rectangle
that can give hints to devices about the area that can be scissored.
This is used by the draw device and display list device to minimize
the size of temporary clip mask buffers.
The scissor rectangle, if used, must have been transformed by the
current transform matrix.
Diffstat (limited to 'source/xps/xps-tile.c')
-rw-r--r-- | source/xps/xps-tile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/xps/xps-tile.c b/source/xps/xps-tile.c index 6cecd9c0..31373ba3 100644 --- a/source/xps/xps-tile.c +++ b/source/xps/xps-tile.c @@ -29,7 +29,7 @@ xps_paint_tiling_brush_clipped(fz_context *ctx, xps_document *doc, const fz_matr 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, NULL, 0, ctm); + fz_clip_path(ctx, dev, path, 0, ctm, NULL); 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); |