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.5 by greg, Wed Jun 24 09:17:43 1992 UTC vs.
Revision 2.7 by greg, Tue Sep 20 15:48:25 1994 UTC

# Line 103 | Line 103 | char  *argv[];
103          int  i;
104          
105          progname = argv[0];
106 <        if ((gv = getenv("GAMMA")) != NULL)
106 >        if ((gv = getenv("DISPLAY_GAMMA")) != NULL)
107                  gamcor = atof(gv);
108  
109          for (i = 1; i < argc; i++)
# Line 644 | 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