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

Comparing ray/src/px/ra_pr.c (file contents):
Revision 1.11 by greg, Wed Aug 7 08:36:31 1991 UTC vs.
Revision 2.2 by greg, Thu Dec 19 14:52:14 1991 UTC

# Line 17 | Line 17 | static char SCCSid[] = "$SunId$ LBL";
17  
18   #include  "color.h"
19  
20 + #include  "resolu.h"
21 +
22   #include  "pic.h"
23  
24                          /* descriptor for a picture file or frame buffer */
# Line 37 | Line 39 | extern char    *ecalloc(), *emalloc();
39  
40   extern long  ftell();
41  
42 < extern double  atof(), pow();
42 > extern double  pow();
43  
44 < double  gamma = 2.0;                    /* gamma correction */
44 > double  gamma = 2.2;                    /* gamma correction */
45  
46   int  bradj = 0;                         /* brightness adjustment */
47  
# Line 123 | Line 125 | char  *argv[];
125                  printargs(i, argv, stdout);
126                  fputformat(COLRFMT, stdout);
127                  putchar('\n');
128 <                fputresolu(YMAJOR|YDECR, xmax, ymax, stdout);
128 >                fprtresolu(xmax, ymax, stdout);
129                                          /* convert file */
130                  pr2ra(&head);
131          } else {
# Line 195 | Line 197 | register struct rasterfile  *h;
197                  return(NULL);
198                                          /* check header */
199          if (checkheader(p->fp, COLRFMT, NULL) < 0 ||
200 <                        fgetresolu(&xmax, &ymax, p->fp) != (YMAJOR|YDECR))
200 >                        fgetresolu(&xmax, &ymax, p->fp) < 0)
201                  quiterr("bad picture format");
202          p->nexty = 0;
203          p->bytes_line = 0;              /* variable length lines */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines