From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Thu, 17 Nov 2022 16:43:17 +0000 (-0500) Subject: Make Letter the default size if the other values do not fit X-Git-Tag: v2.4.3~81^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a337b5c858e620266ae7c2ba7fac70ad43ea66c;p=thirdparty%2Fcups.git Make Letter the default size if the other values do not fit Especially since letter size is the most common size --- diff --git a/tools/ippevepcl.c b/tools/ippevepcl.c index f15ea51d74..1aa072f59d 100644 --- a/tools/ippevepcl.c +++ b/tools/ippevepcl.c @@ -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); }