diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-01 14:21:43 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-01 14:21:43 +0200 |
commit | 324d663baa86f9355f7a336b60f706ce31d4f9ca (patch) | |
tree | d99f7a27c5e834cf0755afb064cc3fa9b4db6dbb /xps/xpscolor.c | |
parent | 5a18d4874159ba759863a3dc29ef11fcd23924f9 (diff) | |
download | mupdf-324d663baa86f9355f7a336b60f706ce31d4f9ca.tar.xz |
xps: Use Opacity attribute for setting constant alpha.
Diffstat (limited to 'xps/xpscolor.c')
-rw-r--r-- | xps/xpscolor.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |