ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/ra_pr24.c
(Generate patch)

Comparing ray/src/px/ra_pr24.c (file contents):
Revision 1.10 by greg, Mon Oct 14 17:09:39 1991 UTC vs.
Revision 1.11 by greg, Mon Nov 11 14:01:51 1991 UTC

# Line 14 | Line 14 | static char SCCSid[] = "$SunId$ LBL";
14  
15   #include  "color.h"
16  
17 + #include  "resolu.h"
18 +
19   extern double  atof(), pow();
20  
21   double  gamma = 2.2;                    /* gamma correction */
# Line 89 | Line 91 | char  *argv[];
91                  printargs(i, argv, stdout);
92                  fputformat(COLRFMT, stdout);
93                  putchar('\n');
94 <                fputresolu(YMAJOR|YDECR, xmax, ymax, stdout);
94 >                fprtresolu(xmax, ymax, stdout);
95                                          /* convert file */
96                  pr2ra(head.ras_type);
97          } else {
98                                          /* get header info. */
99                  if (checkheader(stdin, COLRFMT, NULL) < 0 ||
100 <                        fgetresolu(&xmax, &ymax, stdin) != (YMAJOR|YDECR))
100 >                                fgetresolu(&xmax, &ymax, stdin) < 0)
101                          quiterr("bad picture format");
102                                          /* write rasterfile header */
103                  head.ras_magic = RAS_MAGIC;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines