summaryrefslogtreecommitdiff
path: root/xps/xpsgradient.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2010-06-30 12:34:55 +0000
committerTor Andersson <tor.andersson@artifex.com>2010-06-30 12:34:55 +0000
commit0a79c2e01455dfd7b0642fdf4d1a6fe499a41c7e (patch)
tree2a0cccb6c997eb819596021b4972b1140a5e962d /xps/xpsgradient.c
parent956f9bfac6f6dc7f13fbfa707d392bc87b2bd33c (diff)
downloadghostpdl-0a79c2e01455dfd7b0642fdf4d1a6fe499a41c7e.tar.gz
Use gx_effective_clip_path to get the current visible area instead of manually maintaining the bounds while parsing.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11466 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'xps/xpsgradient.c')
-rw-r--r--xps/xpsgradient.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/xps/xpsgradient.c b/xps/xpsgradient.c
index d6f3b0d20..91d381cf7 100644
--- a/xps/xpsgradient.c
+++ b/xps/xpsgradient.c
@@ -733,7 +733,6 @@ xps_parse_gradient_brush(xps_context_t *ctx, char *base_uri, xps_resource_t *dic
int spread_method;
int code;
- gs_rect saved_bounds;
gs_rect bbox;
gs_function_t *color_func;
@@ -794,7 +793,7 @@ xps_parse_gradient_brush(xps_context_t *ctx, char *base_uri, xps_resource_t *dic
has_opacity = xps_gradient_has_transparent_colors(stop_offsets, stop_colors, stop_count);
- xps_clip(ctx, &saved_bounds);
+ xps_clip(ctx);
gs_gsave(ctx->pgs);
gs_concat(ctx->pgs, &transform);
@@ -861,8 +860,6 @@ xps_parse_gradient_brush(xps_context_t *ctx, char *base_uri, xps_resource_t *dic
gs_grestore(ctx->pgs);
- xps_restore_bounds(ctx, &saved_bounds);
-
xps_free_gradient_stop_function(ctx, opacity_func);
xps_free_gradient_stop_function(ctx, color_func);