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

Comparing ray/src/px/vgaimage.c (file contents):
Revision 2.5 by greg, Wed Nov 11 17:34:14 1992 UTC vs.
Revision 2.9 by gwlarson, Tue Oct 27 09:08:28 1998 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1992 Regents of the University of California */
1 > /* Copyright (c) 1993 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 86 | Line 86 | char  *argv[];
86          int  i;
87  
88          progname = argv[0] = fixargv0(argv[0]);
89 <        if ((gv = getenv("GAMMA")) != NULL)
89 >        if ((gv = getenv("DISPLAY_GAMMA")) != NULL)
90                  gamcor = atof(gv);
91  
92          for (i = 1; i < argc; i++)
# Line 147 | Line 147 | userr:
147   }
148  
149  
150 + int
151   headline(s)             /* get relevant info from header */
152   char  *s;
153   {
# Line 158 | Line 159 | char  *s;
159                  formatval(fmt, s);
160                  wrongformat = strcmp(fmt, COLRFMT);
161          }
162 +        return(0);
163   }
164  
165  
# Line 168 | Line 170 | init()                 /* initialize and load display */
170                  short   xsiz, ysiz;
171          } video[] = {
172                  {_MRES256COLOR, 320, 200},
173 <                {_VRES256COLOR, 640, 400},
173 >                {_VRES256COLOR, 640, 480},
174                  {_SVRES256COLOR, 800, 600},
175                  {_XRES256COLOR, 1024, 768},
176 <                -1
176 >                {-1, 0, 0}
177          };
178          struct videoconfig      config;
179          register int    i;
# Line 379 | Line 381 | setpalette()                   /* set our palette using clrtab */
381          cvals[ourblack] = _BLACK;
382          cvals[ourwhite] = _BRIGHTWHITE;
383          for (i = 0; i < maxcolors; i++)
384 <                cvals[i+minpix] = clrtab[i][BLU]<<14 & 0x3f0000L |
384 >                cvals[i+minpix] = (long)clrtab[i][BLU]<<14 & 0x3f0000L |
385                                    clrtab[i][GRN]<<6 & 0x3f00 |
386                                    clrtab[i][RED]>>2;
387          _remapallpalette(cvals);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines