From 324d663baa86f9355f7a336b60f706ce31d4f9ca Mon Sep 17 00:00:00 2001 From: Tor Andersson <tor.andersson@artifex.com> Date: Fri, 1 Apr 2011 14:21:43 +0200 Subject: xps: Use Opacity attribute for setting constant alpha. --- xps/xpscolor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xps/xpscolor.c') diff --git a/xps/xpscolor.c b/xps/xpscolor.c index 1858c687..37dee5fe 100644 --- a/xps/xpscolor.c +++ b/xps/xpscolor.c @@ -10,7 +10,7 @@ xps_set_color(xps_context *ctx, fz_colorspace *colorspace, float *samples) ctx->colorspace = colorspace; for (i = 0; i < colorspace->n; i++) ctx->color[i] = samples[i + 1]; - ctx->alpha = samples[0]; + ctx->alpha = samples[0] * ctx->opacity[ctx->opacity_top]; } static int unhex(int chr) -- cgit v1.2.3