summaryrefslogtreecommitdiff
path: root/base/gxclrast.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2021-12-06 15:55:15 +0000
committerRobin Watts <Robin.Watts@artifex.com>2021-12-07 11:44:09 +0000
commit6f29f18171aaf772fbfe6d6ea5b7d40acbd89a0f (patch)
treeb110f27dcecbd33c7fbf34b652c840963045f525 /base/gxclrast.c
parent0adb7cf679274177ea0789018bbaf7551fef38f8 (diff)
downloadghostpdl-6f29f18171aaf772fbfe6d6ea5b7d40acbd89a0f.tar.gz
Send fill_adjust across clist as part of begin_clip.
Send the fill adjust value that should be used for a clip path as part of the begin_clip operation.
Diffstat (limited to 'base/gxclrast.c')
-rw-r--r--base/gxclrast.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/base/gxclrast.c b/base/gxclrast.c
index c2bdca109..faf4988d8 100644
--- a/base/gxclrast.c
+++ b/base/gxclrast.c
@@ -1339,10 +1339,8 @@ set_tile_phase:
clip_save.dcolor = fill_color;
clip_save.fa_save.x = gs_gstate.fill_adjust.x;
clip_save.fa_save.y = gs_gstate.fill_adjust.y;
- /* clip_path should match fill_path, i.e., with fill_adjust applied */
- /* If we get here with the fill_adjust = [0, 0], set it to [0.5, 0.5]i */
- if (clip_save.fa_save.x == 0 || clip_save.fa_save.y == 0)
- gs_gstate.fill_adjust.x = gs_gstate.fill_adjust.y = fixed_half;
+ cmd_getw(gs_gstate.fill_adjust.x, cbp);
+ cmd_getw(gs_gstate.fill_adjust.y, cbp);
/* temporarily set a solid color */
color_set_pure(&fill_color, (gx_color_index)1);
state.lop_enabled = false;