diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-02-22 14:18:05 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-02-22 14:30:36 +0100 |
commit | ad8a5680e6d3fd1ad77ae2c1a3d38ebe2042f2cb (patch) | |
tree | d7da3d8e161086470a3e3238fe7ac650eb8e44a4 /include/mupdf/fitz/shade.h | |
parent | 35a0cb70629c57eb94cb99fec83f994d3d496a7b (diff) | |
download | mupdf-ad8a5680e6d3fd1ad77ae2c1a3d38ebe2042f2cb.tar.xz |
Drop const from fz_shade.
Shading objects are immutable and opaque once constructed.
Therefore there is no need for the const keyword.
Diffstat (limited to 'include/mupdf/fitz/shade.h')
-rw-r--r-- | include/mupdf/fitz/shade.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/mupdf/fitz/shade.h b/include/mupdf/fitz/shade.h index ada969cd..56adea5b 100644 --- a/include/mupdf/fitz/shade.h +++ b/include/mupdf/fitz/shade.h @@ -72,12 +72,12 @@ struct fz_shade_s fz_compressed_buffer *buffer; }; -fz_shade *fz_keep_shade(fz_context *ctx, const fz_shade *shade); -void fz_drop_shade(fz_context *ctx, const fz_shade *shade); +fz_shade *fz_keep_shade(fz_context *ctx, fz_shade *shade); +void fz_drop_shade(fz_context *ctx, fz_shade *shade); void fz_drop_shade_imp(fz_context *ctx, fz_storable *shade); -fz_rect *fz_bound_shade(fz_context *ctx, const fz_shade *shade, const fz_matrix *ctm, fz_rect *r); -void fz_paint_shade(fz_context *ctx, const fz_shade *shade, const fz_matrix *ctm, fz_pixmap *dest, const fz_irect *bbox); +fz_rect *fz_bound_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_rect *r); +void fz_paint_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_pixmap *dest, const fz_irect *bbox); /* * Handy routine for processing mesh based shades @@ -93,7 +93,7 @@ struct fz_vertex_s typedef void (fz_mesh_prepare_fn)(fz_context *ctx, void *arg, fz_vertex *v, const float *c); typedef void (fz_mesh_process_fn)(fz_context *ctx, void *arg, fz_vertex *av, fz_vertex *bv, fz_vertex *cv); -void fz_process_mesh(fz_context *ctx, const fz_shade *shade, const fz_matrix *ctm, +void fz_process_mesh(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_mesh_prepare_fn *prepare, fz_mesh_process_fn *process, void *process_arg); void fz_print_shade(fz_context *ctx, fz_output *out, fz_shade *shade); |