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

Comparing ray/src/px/ra_ppm.c (file contents):
Revision 1.1 by greg, Fri Aug 16 12:41:59 1991 UTC vs.
Revision 1.2 by greg, Mon Nov 11 14:01:32 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   int  agryscan(), bgryscan(), aclrscan(), bclrscan();
# Line 87 | Line 89 | char  *argv[];
89                  printargs(i, argv, stdout);
90                  fputformat(COLRFMT, stdout);
91                  putchar('\n');
92 <                fputresolu(YMAJOR|YDECR, xmax, ymax, stdout);
92 >                fprtresolu(xmax, ymax, stdout);
93                                          /* convert file */
94                  switch (ptype) {
95                  case '2':
# Line 108 | Line 110 | char  *argv[];
110          } else {
111                                          /* get header info. */
112                  if (checkheader(stdin, COLRFMT, NULL) < 0 ||
113 <                        fgetresolu(&xmax, &ymax, stdin) != (YMAJOR|YDECR))
113 >                                fgetresolu(&xmax, &ymax, stdin) < 0)
114                          quiterr("bad picture format");
115                                          /* write PPM header */
116                  printf("P%c\n%d %d\n%d\n", binflag ? '6' : '3',

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines