~ubuntu-branches/ubuntu/utopic/ghostscript/utopic-proposed

« back to all changes in this revision

Viewing changes to base/gxblend1.c

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2013-08-16 19:19:47 UTC
  • mfrom: (1.1.39)
  • Revision ID: package-import@ubuntu.com-20130816191947-0orkdx2lcffeiokd
Tags: 9.09~dfsg~rc1-0ubuntu1
* New upstream release
   - Ghostscript 9.09rc1.
   - Upstream: Due to a couple of serious regressions that were discovered
     *very* shortly after the 9.08 release was completed, we decided it was
     best to withdraw 9.08, and produce a 9.09 release with those issues
     resolved.

Show diffs side-by-side

added added

removed removed

Lines of Context:
306
306
            } else {
307
307
                in_mask_rect = false;
308
308
            }
309
 
            if (in_mask_rect || maskbuf == NULL)
310
 
                pix_alpha = alpha;
311
 
            else
312
 
                pix_alpha = mask_bg_alpha;
313
 
 
314
 
            /* Complement the components for subtractive color spaces */
 
309
 
 
310
            pix_alpha = alpha;
 
311
            /* If we have a soft mask, then we have some special handling of the 
 
312
               group alpha value */
 
313
            if (has_mask) {
 
314
                if (!in_mask_rect) {
 
315
                    /* Special case where we have a soft mask but are outside the
 
316
                        range of the soft mask and must use the background alpha value */
 
317
                    pix_alpha = mask_bg_alpha;
 
318
                } else {
 
319
                    /* If we are isolated, do not double apply the alpha */
 
320
                    if (tos_isolated) {
 
321
                        pix_alpha = 0xff;
 
322
                    }
 
323
                }
 
324
            }
 
325
 
 
326
             /* Complement the components for subtractive color spaces */
315
327
            if (additive) {
316
328
                for (i = 0; i <= n_chan; ++i) {
317
329
                    tos_pixel[i] = tos_ptr[i * tos_planestride];