summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'base/gxpaint.c')
-rw-r--r--base/gxpaint.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/base/gxpaint.c b/base/gxpaint.c
index f570334e..2e4955c1 100644
--- a/base/gxpaint.c
+++ b/base/gxpaint.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2020 Artifex Software, Inc.
+/* Copyright (C) 2001-2021 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -67,9 +67,16 @@ gx_stroke_fill(gx_path * ppath, gs_gstate * pgs)
return code;
params.flatness = (caching_an_outline_font(pgs) ? 0.0 : pgs->flatness);
params.traditional = false;
- return (*dev_proc(dev, stroke_path))
+
+ code = (*dev_proc(dev, stroke_path))
(dev, (const gs_gstate *)pgs, ppath, &params,
gs_currentdevicecolor_inline(pgs), pcpath);
+
+ if (pgs->black_text_state) {
+ gsicc_restore_black_text(pgs);
+ }
+
+ return code;
}
int
@@ -89,11 +96,18 @@ gx_fill_stroke_path(gs_gstate * pgs, int rule)
fill_params.flatness = (caching_an_outline_font(pgs) ? 0.0 : pgs->flatness);
stroke_params.flatness = (caching_an_outline_font(pgs) ? 0.0 : pgs->flatness);
stroke_params.traditional = false;
- return (*dev_proc(dev, fill_stroke_path))
+
+ code = (*dev_proc(dev, fill_stroke_path))
(dev, (const gs_gstate *)pgs, pgs->path,
&fill_params, gs_currentdevicecolor_inline(pgs),
- &stroke_params, gs_altdevicecolor_inline(pgs),
+ &stroke_params, gs_swappeddevicecolor_inline(pgs),
pcpath);
+
+ if (pgs->black_text_state) {
+ gsicc_restore_black_text(pgs);
+ }
+
+ return code;
}
int