diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-06-29 16:46:17 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-07-05 15:32:34 +0200 |
commit | ea7403b4c172338dfe7f371302f82859921e60af (patch) | |
tree | 4a3fbf8ea35cb53fcbf395f096cf61ffda7b40be /source/pdf/pdf-shade.c | |
parent | 4a99615a609eec2b84bb2341d74fac46a5998137 (diff) | |
download | mupdf-ea7403b4c172338dfe7f371302f82859921e60af.tar.xz |
Pass matrices by value: device and document interface.
Diffstat (limited to 'source/pdf/pdf-shade.c')
-rw-r--r-- | source/pdf/pdf-shade.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/pdf/pdf-shade.c b/source/pdf/pdf-shade.c index d34e8440..13c1ebc8 100644 --- a/source/pdf/pdf-shade.c +++ b/source/pdf/pdf-shade.c @@ -293,7 +293,7 @@ pdf_load_type7_shade(fz_context *ctx, pdf_document *doc, fz_shade *shade, pdf_ob /* Load all of the shading dictionary parameters, then switch on the shading type. */ static fz_shade * -pdf_load_shading_dict(fz_context *ctx, pdf_document *doc, pdf_obj *dict, const fz_matrix *transform) +pdf_load_shading_dict(fz_context *ctx, pdf_document *doc, pdf_obj *dict, fz_matrix transform) { fz_shade *shade = NULL; pdf_function *func[FZ_MAX_COLORS] = { NULL }; @@ -314,7 +314,7 @@ pdf_load_shading_dict(fz_context *ctx, pdf_document *doc, pdf_obj *dict, const f shade->type = FZ_MESH_TYPE4; shade->use_background = 0; shade->use_function = 0; - shade->matrix = *transform; + shade->matrix = transform; shade->bbox = fz_infinite_rect; shade->colorspace = NULL; @@ -458,13 +458,13 @@ pdf_load_shading(fz_context *ctx, pdf_document *doc, pdf_obj *dict) if (!obj) fz_throw(ctx, FZ_ERROR_SYNTAX, "missing shading dictionary"); - shade = pdf_load_shading_dict(ctx, doc, obj, &mat); + shade = pdf_load_shading_dict(ctx, doc, obj, mat); } /* Naked shading dictionary */ else { - shade = pdf_load_shading_dict(ctx, doc, dict, &fz_identity); + shade = pdf_load_shading_dict(ctx, doc, dict, fz_identity); } pdf_store_item(ctx, dict, shade, fz_shade_size(ctx, shade)); |