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

Comparing ray/src/px/ximage.c (file contents):
Revision 2.4 by greg, Tue Apr 28 09:40:36 1992 UTC vs.
Revision 2.8 by gwlarson, Tue Oct 27 09:08:28 1998 UTC

# Line 97 | Line 97 | main(argc, argv)
97   int  argc;
98   char  *argv[];
99   {
100 +        extern char  *getenv();
101 +        char  *gv;
102          int  headline();
103          int  i;
104          
105          progname = argv[0];
106 +        if ((gv = getenv("DISPLAY_GAMMA")) != NULL)
107 +                gamcor = atof(gv);
108  
109          for (i = 1; i < argc; i++)
110                  if (argv[i][0] == '-')
# Line 167 | Line 171 | userr:
171   }
172  
173  
174 + int
175   headline(s)             /* get relevant info from header */
176   char  *s;
177   {
# Line 179 | Line 184 | char  *s;
184                  wrongformat = strcmp(fmt, COLRFMT);
185          } else if (isview(s) && sscanview(&ourview, s) > 0)
186                  gotview++;
187 +        return(0);
188   }
189  
190  
# Line 640 | Line 646 | int  y;
646                  if (fseek(fin, scanpos[y], 0) == -1)
647                          quiterr("fseek error");
648                  cury = y;
649 <        } else if (scanpos != NULL)
649 >        } else if (scanpos != NULL && scanpos[y] == -1)
650                  scanpos[y] = ftell(fin);
651  
652          if (freadcolrs(scanline, xmax, fin) < 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines