summaryrefslogtreecommitdiff
path: root/xps/xpscolor.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2007-09-06 10:57:38 +0000
committerTor Andersson <tor.andersson@artifex.com>2007-09-06 10:57:38 +0000
commitfc842251f3e1d0d40f10fb947d0fce18244a1d85 (patch)
tree1b12bb4514fd1aae7e94fa774ef78e2a99198477 /xps/xpscolor.c
parentb6a6e399801b264ef3de202ea8e351ef309b1705 (diff)
downloadghostpdl-fc842251f3e1d0d40f10fb947d0fce18244a1d85.tar.gz
Save decoded image data in the parts so images drawn multiple times do not need to be decoded each time. Use XPS_DISABLE_TRANSPARENCY environment variable to disable transparency device for debugging.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2912 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'xps/xpscolor.c')
-rw-r--r--xps/xpscolor.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xps/xpscolor.c b/xps/xpscolor.c
index 70ac8bc36..6c3f5b035 100644
--- a/xps/xpscolor.c
+++ b/xps/xpscolor.c
@@ -45,8 +45,7 @@ static int count_commas(char *s)
void
xps_parse_color(xps_context_t *ctx, char *string, gs_color_space **csp, float *samples)
{
- static gs_color_space *g_device_rgb = NULL;
- char *a, *b, *c;
+ char *a, *b;
int n, i;
samples[0] = 1.0;
@@ -145,6 +144,7 @@ xps_parse_solid_color_brush(xps_context_t *ctx,
color_att = xps_att(node, "Color");
opacity_att = xps_att(node, "Opacity");
+ colorspace = ctx->srgb;
samples[0] = 1.0;
samples[1] = 0.0;
samples[2] = 0.0;
@@ -159,6 +159,8 @@ xps_parse_solid_color_brush(xps_context_t *ctx,
xps_set_color(ctx, colorspace, samples);
xps_fill(ctx);
+
+ return 0;
}
int