diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2016-09-28 22:25:16 -0400 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-10-06 11:54:10 +0100 |
commit | 80d6490e6d54f822de6d36219ce08e6a8ad33137 (patch) | |
tree | b3b5bf787b1454e82275be0b452c4edc8ce432de /source/fitz/draw-device.c | |
parent | 994770e2010e21cd8f90bacc34b9fae8a6350a40 (diff) | |
download | mupdf-80d6490e6d54f822de6d36219ce08e6a8ad33137.tar.xz |
Hide internals of fz_colorspace
The implementation does not need to be in the public API.
Diffstat (limited to 'source/fitz/draw-device.c')
-rw-r--r-- | source/fitz/draw-device.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c index e337c482..e40b61db 100644 --- a/source/fitz/draw-device.c +++ b/source/fitz/draw-device.c @@ -439,7 +439,7 @@ fz_draw_fill_path(fz_context *ctx, fz_device *devp, const fz_path *path, int eve if (state->blendmode & FZ_BLEND_KNOCKOUT) state = fz_knockout_begin(ctx, dev); - n = model ? model->n : 0; + n = fz_colorspace_n(ctx, model); if (n > 0) { fz_convert_color(ctx, model, colorfv, colorspace, color); @@ -507,7 +507,7 @@ fz_draw_stroke_path(fz_context *ctx, fz_device *devp, const fz_path *path, const if (state->blendmode & FZ_BLEND_KNOCKOUT) state = fz_knockout_begin(ctx, dev); - n = model ? model->n : 0; + n = fz_colorspace_n(ctx, model); if (n > 0) { fz_convert_color(ctx, model, colorfv, colorspace, color); @@ -789,7 +789,7 @@ fz_draw_fill_text(fz_context *ctx, fz_device *devp, const fz_text *text, const f if (state->blendmode & FZ_BLEND_KNOCKOUT) state = fz_knockout_begin(ctx, dev); - n = model ? model->n : 0; + n = fz_colorspace_n(ctx, model); if (n > 0) { fz_convert_color(ctx, model, colorfv, colorspace, color); @@ -880,7 +880,7 @@ fz_draw_stroke_text(fz_context *ctx, fz_device *devp, const fz_text *text, const if (state->blendmode & FZ_BLEND_KNOCKOUT) state = fz_knockout_begin(ctx, dev); - n = model ? model->n : 0; + n = fz_colorspace_n(ctx, model); if (n > 0) { fz_convert_color(ctx, model, colorfv, colorspace, color); @@ -1238,7 +1238,7 @@ fz_draw_fill_shade(fz_context *ctx, fz_device *devp, fz_shade *shade, const fz_m { unsigned char *s; int x, y, n, i; - n = model ? model->n : 0; + n = fz_colorspace_n(ctx, model); if (n > 0) { fz_convert_color(ctx, model, colorfv, shade->colorspace, shade->background); @@ -1586,7 +1586,7 @@ fz_draw_fill_image_mask(fz_context *ctx, fz_device *devp, fz_image *image, const pixmap = scaled; } - n = model ? model->n : 0; + n = fz_colorspace_n(ctx, model); if (n > 0) { fz_convert_color(ctx, model, colorfv, colorspace, color); |