summaryrefslogtreecommitdiff
path: root/gs/base/gxblend1.c
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2010-11-05 22:12:05 +0000
committerMichael Vrhel <michael.vrhel@artifex.com>2010-11-05 22:12:05 +0000
commita77abaab9e55a30ca60202d6bbd25eeb33bc9853 (patch)
tree8d246425b9d414b64ba6d6e88c0626c15be7dfe2 /gs/base/gxblend1.c
parentb2713bdce89fd702bfdc5971c78261cb72b9cdff (diff)
downloadghostpdl-a77abaab9e55a30ca60202d6bbd25eeb33bc9853.tar.gz
Fix so that when compositing with tags, the tos tag data has no effect on the nos tag data if the pixel alpha value is 0. Fixes Bug 691752.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11889 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/base/gxblend1.c')
-rw-r--r--gs/base/gxblend1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gs/base/gxblend1.c b/gs/base/gxblend1.c
index 4b5859073..7d6d9cace 100644
--- a/gs/base/gxblend1.c
+++ b/gs/base/gxblend1.c
@@ -353,7 +353,8 @@ pdf14_compose_group(pdf14_buf *tos, pdf14_buf *nos, pdf14_buf *maskbuf,
if (tos_has_tag) {
if (pix_alpha == 255) {
nos_ptr[x + nos_tag_offset] = tos_ptr[x + tos_tag_offset];
- } else if (tos_ptr[x + tos_tag_offset] != GS_UNTOUCHED_TAG) {
+ } else if (pix_alpha != 0 && tos_ptr[x + tos_tag_offset] !=
+ GS_UNTOUCHED_TAG) {
nos_ptr[x + nos_tag_offset] =
(nos_ptr[x + nos_tag_offset] |
tos_ptr[x + tos_tag_offset]) &