summaryrefslogtreecommitdiff
path: root/source/fitz/bbox-device.c
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/fitz/bbox-device.c
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/fitz/bbox-device.c')
-rw-r--r--source/fitz/bbox-device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/fitz/bbox-device.c b/source/fitz/bbox-device.c
index 960bf0eb..e7ef249c 100644
--- a/source/fitz/bbox-device.c
+++ b/source/fitz/bbox-device.c
@@ -73,14 +73,14 @@ fz_bbox_fill_shade(fz_context *ctx, fz_device *dev, fz_shade *shade, const fz_ma
}
static void
-fz_bbox_fill_image(fz_context *ctx, fz_device *dev, const fz_image *image, const fz_matrix *ctm, float alpha)
+fz_bbox_fill_image(fz_context *ctx, fz_device *dev, fz_image *image, const fz_matrix *ctm, float alpha)
{
fz_rect r = fz_unit_rect;
fz_bbox_add_rect(ctx, dev, fz_transform_rect(&r, ctm), 0);
}
static void
-fz_bbox_fill_image_mask(fz_context *ctx, fz_device *dev, const fz_image *image, const fz_matrix *ctm,
+fz_bbox_fill_image_mask(fz_context *ctx, fz_device *dev, fz_image *image, const fz_matrix *ctm,
fz_colorspace *colorspace, const float *color, float alpha)
{
fz_rect r = fz_unit_rect;
@@ -116,7 +116,7 @@ fz_bbox_clip_stroke_text(fz_context *ctx, fz_device *dev, const fz_text *text, c
}
static void
-fz_bbox_clip_image_mask(fz_context *ctx, fz_device *dev, const fz_image *image, const fz_rect *rect, const fz_matrix *ctm)
+fz_bbox_clip_image_mask(fz_context *ctx, fz_device *dev, fz_image *image, const fz_rect *rect, const fz_matrix *ctm)
{
fz_rect r = fz_unit_rect;
fz_bbox_add_rect(ctx, dev, fz_transform_rect(&r, ctm), 1);