summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-02-22 14:20:37 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-02-22 14:31:17 +0100
commit2af96d78c56c9cc81176c732563a5a4338012a0b (patch)
tree14870652195ea97de5a6a6630a0b478ecce8fba9 /source/pdf
parentad8a5680e6d3fd1ad77ae2c1a3d38ebe2042f2cb (diff)
downloadmupdf-2af96d78c56c9cc81176c732563a5a4338012a0b.tar.xz
Drop const from fz_image.
Image objects are immutable and opaque once constructed. Therefore there is no need for the const keyword.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/pdf/pdf-device.c b/source/pdf/pdf-device.c
index 37bc8499..186317de 100644
--- a/source/pdf/pdf-device.c
+++ b/source/pdf/pdf-device.c
@@ -111,7 +111,7 @@ struct pdf_device_s
/* Helper functions */
static int
-send_image(fz_context *ctx, pdf_device *pdev, const fz_image *image, int mask, int smask)
+send_image(fz_context *ctx, pdf_device *pdev, fz_image *image, int mask, int smask)
{
fz_pixmap *pixmap = NULL;
pdf_obj *imobj = NULL;
@@ -1037,7 +1037,7 @@ pdf_dev_ignore_text(fz_context *ctx, fz_device *dev, const fz_text *text, const
}
static void
-pdf_dev_fill_image(fz_context *ctx, fz_device *dev, const fz_image *image, const fz_matrix *ctm, float alpha)
+pdf_dev_fill_image(fz_context *ctx, fz_device *dev, fz_image *image, const fz_matrix *ctm, float alpha)
{
pdf_device *pdev = (pdf_device*)dev;
int num;
@@ -1064,7 +1064,7 @@ pdf_dev_fill_shade(fz_context *ctx, fz_device *dev, fz_shade *shade, const fz_ma
}
static void
-pdf_dev_fill_image_mask(fz_context *ctx, fz_device *dev, const fz_image *image, const fz_matrix *ctm,
+pdf_dev_fill_image_mask(fz_context *ctx, fz_device *dev, fz_image *image, const fz_matrix *ctm,
fz_colorspace *colorspace, const float *color, float alpha)
{
pdf_device *pdev = (pdf_device*)dev;
@@ -1085,7 +1085,7 @@ pdf_dev_fill_image_mask(fz_context *ctx, fz_device *dev, const fz_image *image,
}
static void
-pdf_dev_clip_image_mask(fz_context *ctx, fz_device *dev, const fz_image *image, const fz_rect *rect, const fz_matrix *ctm)
+pdf_dev_clip_image_mask(fz_context *ctx, fz_device *dev, fz_image *image, const fz_rect *rect, const fz_matrix *ctm)
{
pdf_device *pdev = (pdf_device*)dev;