summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-02-22 14:18:05 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-02-22 14:30:36 +0100
commitad8a5680e6d3fd1ad77ae2c1a3d38ebe2042f2cb (patch)
treed7da3d8e161086470a3e3238fe7ac650eb8e44a4 /include
parent35a0cb70629c57eb94cb99fec83f994d3d496a7b (diff)
downloadmupdf-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')
-rw-r--r--include/mupdf/fitz/device.h4
-rw-r--r--include/mupdf/fitz/shade.h10
2 files changed, 7 insertions, 7 deletions
diff --git a/include/mupdf/fitz/device.h b/include/mupdf/fitz/device.h
index c7ce7b61..b2c714bb 100644
--- a/include/mupdf/fitz/device.h
+++ b/include/mupdf/fitz/device.h
@@ -117,7 +117,7 @@ struct fz_device_s
void (*clip_stroke_text)(fz_context *, fz_device *, const fz_text *, const fz_stroke_state *, const fz_matrix *);
void (*ignore_text)(fz_context *, fz_device *, const fz_text *, const fz_matrix *);
- void (*fill_shade)(fz_context *, fz_device *, const fz_shade *shd, const fz_matrix *ctm, float alpha);
+ void (*fill_shade)(fz_context *, fz_device *, fz_shade *shd, const fz_matrix *ctm, float alpha);
void (*fill_image)(fz_context *, fz_device *, const fz_image *img, const fz_matrix *ctm, float alpha);
void (*fill_image_mask)(fz_context *, fz_device *, const fz_image *img, const fz_matrix *ctm, fz_colorspace *, const float *color, float alpha);
void (*clip_image_mask)(fz_context *, fz_device *, const fz_image *img, const fz_rect *rect, const fz_matrix *ctm);
@@ -156,7 +156,7 @@ void fz_clip_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz
void fz_clip_stroke_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_stroke_state *stroke, const fz_matrix *ctm);
void fz_ignore_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_matrix *ctm);
void fz_pop_clip(fz_context *ctx, fz_device *dev);
-void fz_fill_shade(fz_context *ctx, fz_device *dev, const fz_shade *shade, const fz_matrix *ctm, float alpha);
+void fz_fill_shade(fz_context *ctx, fz_device *dev, fz_shade *shade, const fz_matrix *ctm, float alpha);
void fz_fill_image(fz_context *ctx, fz_device *dev, const fz_image *image, const fz_matrix *ctm, float alpha);
void fz_fill_image_mask(fz_context *ctx, fz_device *dev, const fz_image *image, const fz_matrix *ctm, fz_colorspace *colorspace, const float *color, float alpha);
void fz_clip_image_mask(fz_context *ctx, fz_device *dev, const fz_image *image, const fz_rect *rect, const fz_matrix *ctm);
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);