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

Comparing ray/src/px/x11image.c (file contents):
Revision 2.9 by greg, Sat May 30 09:33:01 1992 UTC vs.
Revision 2.11 by greg, Fri Aug 21 13:49:30 1992 UTC

# Line 116 | Line 116 | main(argc, argv)
116   int  argc;
117   char  *argv[];
118   {
119 +        extern char  *getenv();
120 +        char  *gv;
121          int  headline();
122          int  i;
123          
124          progname = argv[0];
125 +        if ((gv = getenv("GAMMA")) != NULL)
126 +                gamcor = atof(gv);
127  
128          for (i = 1; i < argc; i++)
129                  if (argv[i][0] == '-')
# Line 935 | Line 939 | int  y;
939                  if (fseek(fin, scanpos[y], 0) == -1)
940                          quiterr("fseek error");
941                  cury = y;
942 <        } else if (scanpos != NULL)
942 >        } else if (scanpos != NULL && scanpos[y] == -1)
943                  scanpos[y] = ftell(fin);
944  
945          if (freadcolrs(scanline, xmax, fin) < 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines