summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2020-04-27 21:21:28 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2020-05-01 16:16:56 -0700
commitcfcec528bf33ddda97ed88a88f51b0ef219f6a58 (patch)
tree4cdba5453363b66d9fc31246460c2f94f0663ac3
parente4f2d720ced1faa2b9f138d4bae857a2aed3cfb4 (diff)
downloadghostpdl-cfcec528bf33ddda97ed88a88f51b0ef219f6a58.tar.gz
Fix backdrop color during blend
-rw-r--r--base/gdevp14.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/base/gdevp14.c b/base/gdevp14.c
index 05b997cd4..7bcf914c1 100644
--- a/base/gdevp14.c
+++ b/base/gdevp14.c
@@ -2514,7 +2514,7 @@ pdf14_put_image(gx_device * dev, gs_gstate * pgs, gx_device * target)
cmm_profile_t* des_profile = NULL;
cmm_dev_profile_t *pdf14dev_profile;
cmm_dev_profile_t *dev_target_profile;
- uint16_t bg = pdev->ctx->additive ? 65535 : 0;
+ uint16_t bg = buf->group_color_info->isadditive ? 65535 : 0;
bool has_tags = device_encodes_tags(dev);
bool deep = pdev->ctx->deep;
int planestride;
@@ -3155,18 +3155,18 @@ pdf14_put_blended_image_cmykspot(gx_device* dev, gx_device* target,
* Return code: negative on error.
**/
static int
-pdf14_cmykspot_put_image(gx_device * dev, gs_gstate * pgs, gx_device * target)
+pdf14_cmykspot_put_image(gx_device *dev, gs_gstate *pgs, gx_device *target)
{
- pdf14_device * pdev = (pdf14_device *)dev;
+ pdf14_device *pdev = (pdf14_device *)dev;
pdf14_buf *buf = pdev->ctx->stack;
gs_int_rect rect;
int x1, y1, width, height;
- gs_devn_params * pdevn_params = &pdev->devn_params;
- gs_separations * pseparations = &pdevn_params->separations;
+ gs_devn_params *pdevn_params = &pdev->devn_params;
+ gs_separations *pseparations = &pdevn_params->separations;
int planestride;
int rowstride;
bool deep = pdev->ctx->deep;
- const uint16_t bg = pdev->ctx->additive ? 65535 : 0;
+ const uint16_t bg = buf->group_color_info->isadditive ? 65535 : 0;
int num_comp;
/* Nothing was ever drawn. */