Skip to content

Commit

Permalink
fix(pcomb): Added default RGB format string if unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregungory committed Nov 7, 2024
1 parent e940651 commit 27f3994
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/px/pcomb.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef lint
static const char RCSid[] = "$Id: pcomb.c,v 2.59 2024/02/23 03:47:57 greg Exp $";
static const char RCSid[] = "$Id: pcomb.c,v 2.60 2024/11/07 20:07:08 greg Exp $";
#endif
/*
* Combine picture files according to calcomp functions.
Expand Down Expand Up @@ -240,13 +240,15 @@ main(
fprintview(commvp, stdout);
fputc('\n', stdout);
}
if (outfloat) { /* print format if known */
if (outfloat) { /* print output format */
printf("NROWS=%d\nNCOLS=%d\n", yres, xres);
fputncomp(outfloat, stdout);
fputendian(stdout);
fputformat("float", stdout);
} else if (strcmp(ourfmt, PICFMT))
fputformat(ourfmt, stdout);
else
fputformat(COLRFMT, stdout);
fputc('\n', stdout); /* end header */
if (!outfloat)
fprtresolu(xres, yres, stdout);
Expand Down

0 comments on commit 27f3994

Please # to comment.