summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2019-11-05 10:02:00 -0800
committerMichael Vrhel <michael.vrhel@artifex.com>2020-01-10 09:37:24 -0800
commitcf101811c2921850fbe24a44693aceaead7b67ca (patch)
tree53d8f9200d145ed9d82bbe16d997f064ace9bd66
parent9c4d7e87b0351e81d357fc8f35441a676f648a33 (diff)
downloadghostpdl-cf101811c2921850fbe24a44693aceaead7b67ca.tar.gz
Don't rely on opdev->is_fill_color unless doing a fill
-rw-r--r--base/gsovrc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/base/gsovrc.c b/base/gsovrc.c
index cab7005cd..d1e814476 100644
--- a/base/gsovrc.c
+++ b/base/gsovrc.c
@@ -714,10 +714,10 @@ swap_color_index(int depth, gx_color_index color)
* is separable.
*/
static void
-set_retain_mask(overprint_device_t * opdev)
+set_retain_mask(overprint_device_t * opdev, bool is_fill_color)
{
uchar i, ncomps = opdev->color_info.num_components;
- gx_color_index drawn_comps = opdev->is_fill_color ?
+ gx_color_index drawn_comps = is_fill_color ?
opdev->drawn_comps_fill : opdev->drawn_comps_stroke;
gx_color_index retain_mask = 0;
#if !ARCH_IS_BIG_ENDIAN
@@ -732,7 +732,7 @@ set_retain_mask(overprint_device_t * opdev)
if (depth > 8)
retain_mask = swap_color_index(depth, retain_mask);
#endif
- if (opdev->is_fill_color)
+ if (is_fill_color)
opdev->retain_mask_fill = retain_mask;
else
opdev->retain_mask_stroke = retain_mask;
@@ -817,7 +817,7 @@ update_overprint_params(
/* if appropriate, update the retain_mask field */
if (colors_are_separable_and_linear(&opdev->color_info))
- set_retain_mask(opdev);
+ set_retain_mask(opdev, pparams->is_fill_color);
return 0;
}