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.7 by greg, Tue Sep 20 15:48:25 1994 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 640 | Line 644 | int  y;
644                  if (fseek(fin, scanpos[y], 0) == -1)
645                          quiterr("fseek error");
646                  cury = y;
647 <        } else if (scanpos != NULL)
647 >        } else if (scanpos != NULL && scanpos[y] == -1)
648                  scanpos[y] = ftell(fin);
649  
650          if (freadcolrs(scanline, xmax, fin) < 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines