summaryrefslogtreecommitdiff
path: root/gs/base/gscsepr.c
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2012-09-20 22:55:45 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2012-09-21 12:34:16 -0700
commit8a1ca14aab8f3ef6a7ffaa554d4e1d348b7561a7 (patch)
tree5eea5f8c72c0d14a53af214c8f7c8dac2d06f4e5 /gs/base/gscsepr.c
parent51bc075100060ca1f90dd5d3d6c467597202d27d (diff)
downloadghostpdl-8a1ca14aab8f3ef6a7ffaa554d4e1d348b7561a7.tar.gz
Bulk of work to demonstrate the use of DeviceN ICC output profile.
This adds support to the psdcmyk device as well as the required changes in the graphics library. Through the use of the LIMIT_TO_ICC define in gdevpsd, it is possible to limit the colorants to those defined by the ICC output profile. Setting to 1 will limit it setting to 0 will allow all spots (up to the maximum) to be created. If spot names in the document match those in the command line with -sICCOutputColors, then those colorants and hence separation will be treated the same.
Diffstat (limited to 'gs/base/gscsepr.c')
-rw-r--r--gs/base/gscsepr.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/gs/base/gscsepr.c b/gs/base/gscsepr.c
index 5bad26b33..57ff898bd 100644
--- a/gs/base/gscsepr.c
+++ b/gs/base/gscsepr.c
@@ -124,16 +124,18 @@ gx_install_Separation(gs_color_space * pcs, gs_state * pgs)
return code;
gs_currentcolorspace_inline(pgs)->params.separation.use_alt_cspace =
using_alt_color_space(pgs);
- if (gs_currentcolorspace_inline(pgs)->params.separation.use_alt_cspace)
+ if (gs_currentcolorspace_inline(pgs)->params.separation.use_alt_cspace) {
code = (pcs->base_space->type->install_cspace)
(pcs->base_space, pgs);
- /*
- * Give the device an opportunity to capture equivalent colors for any
- * spot colors which might be present in the color space.
- */
- if (code >= 0)
- code = dev_proc(pgs->device, update_spot_equivalent_colors)
- (pgs->device, pgs);
+ } else {
+ /*
+ * Give the device an opportunity to capture equivalent colors for any
+ * spot colors which might be present in the color space.
+ */
+ if (code >= 0)
+ code = dev_proc(pgs->device, update_spot_equivalent_colors)
+ (pgs->device, pgs);
+ }
return code;
}