diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-01-21 12:55:36 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-01-21 12:55:36 +0100 |
commit | 6625a5b82671df7e79afc69a2ba366fb64df03a9 (patch) | |
tree | b8bc2694b269fce2dc7c1e00ead0f47590993419 /source/fitz/test-device.c | |
parent | 000b8df004b175781af5b071590cf3867ae16f3a (diff) | |
download | mupdf-6625a5b82671df7e79afc69a2ba366fb64df03a9.tar.xz |
Drop const from fz_colorspace.
It's an opaque immutable structure, that we don't expect to ever want
to change after creation. Therefore the const keyword is not useful,
and is only line noise.
Diffstat (limited to 'source/fitz/test-device.c')
-rw-r--r-- | source/fitz/test-device.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/fitz/test-device.c b/source/fitz/test-device.c index 339b1e94..065fa59e 100644 --- a/source/fitz/test-device.c +++ b/source/fitz/test-device.c @@ -26,7 +26,7 @@ is_rgb_color_u8(int threshold_u8, int r, int g, int b) } static void -fz_test_color(fz_context *ctx, fz_device *dev, const fz_colorspace *colorspace, const float *color) +fz_test_color(fz_context *ctx, fz_device *dev, fz_colorspace *colorspace, const float *color) { fz_test_device *t = (fz_test_device*)dev; @@ -57,7 +57,7 @@ fz_test_color(fz_context *ctx, fz_device *dev, const fz_colorspace *colorspace, static void fz_test_fill_path(fz_context *ctx, fz_device *dev, const fz_path *path, int even_odd, const fz_matrix *ctm, - const fz_colorspace *colorspace, const float *color, float alpha) + fz_colorspace *colorspace, const float *color, float alpha) { if (alpha != 0.0f) fz_test_color(ctx, dev, colorspace, color); @@ -65,7 +65,7 @@ fz_test_fill_path(fz_context *ctx, fz_device *dev, const fz_path *path, int even static void fz_test_stroke_path(fz_context *ctx, fz_device *dev, const fz_path *path, const fz_stroke_state *stroke, - const fz_matrix *ctm, const fz_colorspace *colorspace, const float *color, float alpha) + const fz_matrix *ctm, fz_colorspace *colorspace, const float *color, float alpha) { if (alpha != 0.0f) fz_test_color(ctx, dev, colorspace, color); @@ -73,7 +73,7 @@ fz_test_stroke_path(fz_context *ctx, fz_device *dev, const fz_path *path, const static void fz_test_fill_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_matrix *ctm, - const fz_colorspace *colorspace, const float *color, float alpha) + fz_colorspace *colorspace, const float *color, float alpha) { if (alpha != 0.0f) fz_test_color(ctx, dev, colorspace, color); @@ -81,7 +81,7 @@ fz_test_fill_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz static void fz_test_stroke_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_stroke_state *stroke, - const fz_matrix *ctm, const fz_colorspace *colorspace, const float *color, float alpha) + const fz_matrix *ctm, fz_colorspace *colorspace, const float *color, float alpha) { if (alpha != 0.0f) fz_test_color(ctx, dev, colorspace, color); @@ -242,7 +242,7 @@ fz_test_fill_image(fz_context *ctx, fz_device *dev, const fz_image *image, const static void fz_test_fill_image_mask(fz_context *ctx, fz_device *dev, const fz_image *image, const fz_matrix *ctm, - const fz_colorspace *colorspace, const float *color, float alpha) + fz_colorspace *colorspace, const float *color, float alpha) { /* We assume that at least some of the image pixels are non-zero */ fz_test_color(ctx, dev, colorspace, color); |