diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2018-09-12 03:33:11 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2018-09-12 18:37:17 +0800 |
commit | 96cd67562433e491854a4b147cc0f8f2f37b6533 (patch) | |
tree | 5905afcebc98652f6be6814d175cdebd7211a647 /source | |
parent | 319f9ba70bd8de9514d6308259190fd4e3fc74f0 (diff) | |
download | mupdf-96cd67562433e491854a4b147cc0f8f2f37b6533.tar.xz |
Set the profile BGR flag for non-default ICC colorspaces too.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/colorspace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/fitz/colorspace.c b/source/fitz/colorspace.c index 2804d239..f0c8bfd7 100644 --- a/source/fitz/colorspace.c +++ b/source/fitz/colorspace.c @@ -3769,7 +3769,6 @@ fz_new_icc_colorspace(fz_context *ctx, enum fz_colorspace_type type, fz_buffer * const unsigned char *data; data = fz_lookup_icc(ctx, type, &size); profile->buffer = fz_new_buffer_from_shared_data(ctx, data, size); - profile->bgr = (type == FZ_COLORSPACE_BGR); flags |= FZ_COLORSPACE_IS_DEVICE; } else @@ -3790,6 +3789,8 @@ fz_new_icc_colorspace(fz_context *ctx, enum fz_colorspace_type type, fz_buffer * } } + profile->bgr = (type == FZ_COLORSPACE_BGR); + switch (type) { default: num = profile->num_devcomp; break; |