summaryrefslogtreecommitdiff
path: root/devices
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2022-12-12 12:15:23 -0800
committerMichael Vrhel <michael.vrhel@artifex.com>2022-12-12 12:16:09 -0800
commit60226f688f44c974c22eb97fe7a64e30da547b7d (patch)
treeeffb3eecfeba50d726ed542ff7e2007a44c1361a /devices
parentc14c9fc78aa74dbaa04cc439aad7244929fcf008 (diff)
downloadghostpdl-60226f688f44c974c22eb97fe7a64e30da547b7d.tar.gz
ENABLE_COLOR_REPLACE demo should be only for CMYK psd devices
Diffstat (limited to 'devices')
-rw-r--r--devices/gdevpsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/devices/gdevpsd.c b/devices/gdevpsd.c
index df054b8b1..cd7862813 100644
--- a/devices/gdevpsd.c
+++ b/devices/gdevpsd.c
@@ -152,8 +152,8 @@ psd_spec_op(gx_device *dev_, int op, void *data, int datasize)
#if ENABLE_COLOR_REPLACE
/* Demo of doing color replacement in the device in place of
- standard ICC color management */
- if (op == gxdso_replacecolor) {
+ standard ICC color management. Only works for CMYK psd devices */
+ if (op == gxdso_replacecolor && dev_->color_info.num_components >= 4) {
color_replace_t *replace_data = (color_replace_t *)data;
gx_device_color *pdc = replace_data->pdc;