~ubuntu-branches/ubuntu/vivid/ghostscript/vivid-security

« back to all changes in this revision

Viewing changes to base/gxclimag.c

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2013-08-28 18:05:40 UTC
  • mfrom: (1.1.41)
  • Revision ID: package-import@ubuntu.com-20130828180540-372a9b9b1wuesdwi
Tags: 9.10~dfsg~rc1-0ubuntu1
* New upstream release
   - Ghostscript 9.10rc1.
   - Upstream: Mainly, changes to our Postscript startup code (to improve
     compatibility with Adobe) have had unexpected and undesirable side
     effects. Most of these have been in fairly widely relied upon, but also
     decidedly non-standard uses (pdf2dsc being a prime example).
   - We are using Ghostscript's libopenjpeg again, using the system's one
     does not (yet) work as there are still patches of the Ghostscript
     developers which did not get accepted upstream yet..
* debian/control: Removed build dependency on libopenjpeg-dev.
* debian/rules: Removed check for removed openjpeg/ subdirectory in the
  repackaging check again, also set build options for using Ghostscript's
  built-in libopenjpeg library.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
/* Higher-level image operations for band lists */
18
18
#include "math_.h"
19
19
#include "memory_.h"
 
20
#include "string_.h"            /* for strcmp */
20
21
#include "gx.h"
21
22
#include "gserrors.h"
22
23
#include "gscspace.h"
916
917
        if (cmd_largest_size + bytes_per_row > cdev->cend - cdev->cbuf)
917
918
            goto use_default;
918
919
    }
919
 
    if (pim->Interpolate)
 
920
    if (pim->Interpolate) {
 
921
        if (strcmp("pattern-clist",dev->dname) == 0)
 
922
            goto use_default;
920
923
        pie->support.x = pie->support.y = MAX_ISCALE_SUPPORT + 1;
921
 
    else
 
924
    } else {
922
925
        pie->support.x = pie->support.y = 0;
 
926
    }
923
927
    sbox.p.x = pie->rect.p.x - pie->support.x;
924
928
    sbox.p.y = pie->rect.p.y - pie->support.y;
925
929
    sbox.q.x = pie->rect.q.x + pie->support.x;