diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-01-09 16:54:09 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-01-10 16:06:17 +0100 |
commit | bec33a470ea600599d3ad9df472b815e7b46e824 (patch) | |
tree | 427f1a799d973a541e122c78207aaf76a7a98141 /source/fitz/colorspace-imp.h | |
parent | b70eb93f6936c03d8af52040bbca4d4a7db39079 (diff) | |
download | mupdf-bec33a470ea600599d3ad9df472b815e7b46e824.tar.xz |
Add colorspace type enum and use it instead of hardcoded checks on N.
Diffstat (limited to 'source/fitz/colorspace-imp.h')
-rw-r--r-- | source/fitz/colorspace-imp.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/fitz/colorspace-imp.h b/source/fitz/colorspace-imp.h index c369c165..5fd1ffd0 100644 --- a/source/fitz/colorspace-imp.h +++ b/source/fitz/colorspace-imp.h @@ -24,8 +24,8 @@ void fz_cmm_fin_profile(fz_context *ctx, fz_iccprofile *profile); enum { - FZ_CS_HAS_CMYK = (FZ_CS_LAST_PUBLIC_FLAG<<1), - FZ_CS_HAS_SPOTS = (FZ_CS_LAST_PUBLIC_FLAG<<2), + FZ_CS_HAS_CMYK = (FZ_COLORSPACE_LAST_PUBLIC_FLAG<<1), + FZ_CS_HAS_SPOTS = (FZ_COLORSPACE_LAST_PUBLIC_FLAG<<2), FZ_CS_HAS_CMYK_AND_SPOTS = FZ_CS_HAS_CMYK|FZ_CS_HAS_SPOTS }; @@ -34,8 +34,9 @@ struct fz_colorspace_s fz_key_storable key_storable; size_t size; char name[24]; - unsigned char n; - unsigned char flags; + enum fz_colorspace_type type; + int flags; + int n; fz_colorspace_convert_fn *to_ccs; fz_colorspace_convert_fn *from_ccs; fz_colorspace_clamp_fn *clamp; |