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/xps | |
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/xps')
-rw-r--r-- | source/xps/xps-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/xps/xps-common.c b/source/xps/xps-common.c index 104b6c1b..61e0932f 100644 --- a/source/xps/xps-common.c +++ b/source/xps/xps-common.c @@ -323,8 +323,9 @@ void xps_set_color(fz_context *ctx, xps_document *doc, fz_colorspace *colorspace, float *samples) { int i; + int n = fz_colorspace_n(ctx, colorspace); doc->colorspace = colorspace; - for (i = 0; i < colorspace->n; i++) + for (i = 0; i < n; i++) doc->color[i] = samples[i + 1]; doc->alpha = samples[0] * doc->opacity[doc->opacity_top]; } |