~ubuntu-branches/ubuntu/quantal/gutenprint/quantal

« back to all changes in this revision

Viewing changes to src/main/print-escp2.c

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2012-06-19 17:12:48 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20120619171248-cbil10m2dqnc71rr
Tags: 5.2.8-0ubuntu1
* New upstream release
   - Added support for Canon PIXMA DS700, DS810, 50i, 80i, 450i, 455i, 470PD,
     475PD, 550i, 560i, 850i, 860i, 865R, 900PD, 950i, 960i, 990i, 6100i,
     6500i, 9100i, 9900i, i450X, i455X, i475D, i550X, i560X, i905D, i965,
     i990, i9950, iP90, iP90v, iP100, iP6320D, MP260, MX320, MX370, MX430,
     MX510, MX710, MX890, E500, E600, PIXUS iP2700, iP3100, iP4100,
     EPSON Stylus NX420, SX420, TX420
   - CD printing on many Canon printers.
   - Non-working Canon's removed.
   - More Japanese models supported.
   - Printer modes for most printer models are now determined by the
     media, based on information from the corresponding Windows
     driver. If an incompatible mode is selected by the user, a
     suitable mode is substituted, based on the other active
     parameters and quality setting. Modes are also substituted
     based on cartridge selection and duplex selection. Inktype is
     then automatically adjusted.
   - Added support for 8-bit inks to Canon backend, and modes using
     them.
   - Adjusted margins and page sizes of Canon printers.
   - Added borderless functionality to most Canon printers.
   - A problem whereby printing did not work at all on some Linux
     distributions has been fixed.
   - Printing on the Epson Stylus NX200, SX200, and SX205 is believed
     to be corrected.
* debian/patches/0002-genppd-don-t-write-color-profile-information-with-br.patch,
  debian/patches/0003-upgrade-getopt.patch,
  debian/patches/0004-no-data-dumper-needed.patch,
  debian/patches/0005-use-dnointerpolate-in-ghostscript-command-lines.patch:
  Removed, change applied upstream.
* debian/rules: Touch ppd-updater file(s) so that they have the time stamp
  of the build of this package The time stamp of the ppd-updater files tells
  CUPS' trigger script whether they come from different package versions or
  not (LP: #932882).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * "$Id: print-escp2.c,v 1.436 2011/12/22 03:07:45 rlk Exp $"
 
2
 * "$Id: print-escp2.c,v 1.438 2012/01/19 13:26:28 m0m Exp $"
3
3
 *
4
4
 *   Print plug-in EPSON ESC/P2 driver for the GIMP.
5
5
 *
1681
1681
   * This may mean duplicate work, but that's cheap enough.
1682
1682
   */
1683
1683
  ink_type = get_default_inktype(v);
1684
 
  for (i = 0; i < ink_list->n_inks; i++)
 
1684
  if (ink_type && ink_list)
1685
1685
    {
1686
 
      if (strcmp(ink_type, ink_list->inknames[i].name) == 0)
1687
 
        return &(ink_list->inknames[i]);
 
1686
      for (i = 0; i < ink_list->n_inks; i++)
 
1687
        {
 
1688
          if (strcmp(ink_type, ink_list->inknames[i].name) == 0)
 
1689
            return &(ink_list->inknames[i]);
 
1690
        }
1688
1691
    }
1689
1692
  /*
1690
1693
   * If even *that* doesn't work, try using the first ink type on the list.
1691
1694
   */
1692
 
  return &(ink_list->inknames[0]);
 
1695
  return (ink_list) ? &(ink_list->inknames[0]) : NULL;
1693
1696
}
1694
1697
 
1695
1698
static const inkname_t *
4399
4402
  stp_allocate_component_data(v, "Driver", NULL, NULL, pd);
4400
4403
 
4401
4404
  pd->inkname = get_inktype(v);
4402
 
  if (pd->inkname->inkset != INKSET_EXTENDED &&
 
4405
  if (pd->inkname && pd->inkname->inkset != INKSET_EXTENDED &&
4403
4406
      stp_check_boolean_parameter(v, "UseGloss", STP_PARAMETER_ACTIVE) &&
4404
4407
      stp_get_boolean_parameter(v, "UseGloss"))
4405
4408
    pd->use_aux_channels = 1;