From 2af96d78c56c9cc81176c732563a5a4338012a0b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 22 Feb 2016 14:20:37 +0100 Subject: Drop const from fz_image. Image objects are immutable and opaque once constructed. Therefore there is no need for the const keyword. --- source/pdf/pdf-device.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/pdf') 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; -- cgit v1.2.3