]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Make Letter the default size if the other values do not fit 543/head
authorRose <83477269+AtariDreams@users.noreply.github.com>
Thu, 17 Nov 2022 16:43:17 +0000 (11:43 -0500)
committerRose <83477269+AtariDreams@users.noreply.github.com>
Fri, 2 Dec 2022 13:49:52 +0000 (08:49 -0500)
Especially since letter size is the most common size

tools/ippevepcl.c

index f15ea51d74be772ac722fedf1a60816f7b66400f..1aa072f59d481758fc04170b584880c343b78616 100644 (file)
@@ -179,7 +179,7 @@ pcl_start_page(
       case 756 : /* Executive */
           printf("\033&l1A");
          break;
-
+      default  :
       case 792 : /* Letter */
           printf("\033&l2A");
          break;
@@ -209,7 +209,7 @@ pcl_start_page(
 
     if (header->Duplex)
     {
-      int mode = header->Duplex ? 1 + header->Tumble != 0 : 0;
+      int mode = header->Duplex ? 1 + (header->Tumble != 0) : 0;
 
       printf("\033&l%dS", mode);       /* Set duplex mode */
     }
@@ -524,7 +524,7 @@ raster_to_pcl(const char *filename) /* I - File to print (NULL for stdin) */
 
   cupsRasterClose(ras);
 
-  fprintf(stderr, "ATTR: job-impressions=%d\n", page);
+  fprintf(stderr, "ATTR: job-impressions=%u\n", page);
 
   return (0);
 }