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.10 by greg, Sat Feb 22 02:07:28 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1992 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   *  vgaimage.c - driver for VGA board under DOS
6   */
# Line 86 | Line 83 | char  *argv[];
83          int  i;
84  
85          progname = argv[0] = fixargv0(argv[0]);
86 <        if ((gv = getenv("GAMMA")) != NULL)
86 >        if ((gv = getenv("DISPLAY_GAMMA")) != NULL)
87                  gamcor = atof(gv);
88  
89          for (i = 1; i < argc; i++)
# Line 147 | Line 144 | userr:
144   }
145  
146  
147 + int
148   headline(s)             /* get relevant info from header */
149   char  *s;
150   {
# Line 158 | Line 156 | char  *s;
156                  formatval(fmt, s);
157                  wrongformat = strcmp(fmt, COLRFMT);
158          }
159 +        return(0);
160   }
161  
162  
# Line 168 | Line 167 | init()                 /* initialize and load display */
167                  short   xsiz, ysiz;
168          } video[] = {
169                  {_MRES256COLOR, 320, 200},
170 <                {_VRES256COLOR, 640, 400},
170 >                {_VRES256COLOR, 640, 480},
171                  {_SVRES256COLOR, 800, 600},
172                  {_XRES256COLOR, 1024, 768},
173 <                -1
173 >                {-1, 0, 0}
174          };
175          struct videoconfig      config;
176          register int    i;
# Line 379 | Line 378 | setpalette()                   /* set our palette using clrtab */
378          cvals[ourblack] = _BLACK;
379          cvals[ourwhite] = _BRIGHTWHITE;
380          for (i = 0; i < maxcolors; i++)
381 <                cvals[i+minpix] = clrtab[i][BLU]<<14 & 0x3f0000L |
381 >                cvals[i+minpix] = (long)clrtab[i][BLU]<<14 & 0x3f0000L |
382                                    clrtab[i][GRN]<<6 & 0x3f00 |
383                                    clrtab[i][RED]>>2;
384          _remapallpalette(cvals);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines