diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-02-22 14:20:37 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-02-22 14:31:17 +0100 |
commit | 2af96d78c56c9cc81176c732563a5a4338012a0b (patch) | |
tree | 14870652195ea97de5a6a6630a0b478ecce8fba9 /source/fitz/draw-device.c | |
parent | ad8a5680e6d3fd1ad77ae2c1a3d38ebe2042f2cb (diff) | |
download | mupdf-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/fitz/draw-device.c')
-rw-r--r-- | source/fitz/draw-device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c index b623a53b..fead1b0a 100644 --- a/source/fitz/draw-device.c +++ b/source/fitz/draw-device.c @@ -1083,7 +1083,7 @@ fz_transform_pixmap(fz_context *ctx, fz_draw_device *dev, const fz_pixmap *image } static void -fz_draw_fill_image(fz_context *ctx, fz_device *devp, const fz_image *image, const fz_matrix *ctm, float alpha) +fz_draw_fill_image(fz_context *ctx, fz_device *devp, fz_image *image, const fz_matrix *ctm, float alpha) { fz_draw_device *dev = (fz_draw_device*)devp; fz_pixmap *converted = NULL; @@ -1189,7 +1189,7 @@ fz_draw_fill_image(fz_context *ctx, fz_device *devp, const fz_image *image, cons } static void -fz_draw_fill_image_mask(fz_context *ctx, fz_device *devp, const fz_image *image, const fz_matrix *ctm, +fz_draw_fill_image_mask(fz_context *ctx, fz_device *devp, fz_image *image, const fz_matrix *ctm, fz_colorspace *colorspace, const float *color, float alpha) { fz_draw_device *dev = (fz_draw_device*)devp; @@ -1261,7 +1261,7 @@ fz_draw_fill_image_mask(fz_context *ctx, fz_device *devp, const fz_image *image, } static void -fz_draw_clip_image_mask(fz_context *ctx, fz_device *devp, const fz_image *image, const fz_rect *rect, const fz_matrix *ctm) +fz_draw_clip_image_mask(fz_context *ctx, fz_device *devp, fz_image *image, const fz_rect *rect, const fz_matrix *ctm) { fz_draw_device *dev = (fz_draw_device*)devp; fz_irect bbox; |