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 |
|
*/ |
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++) |
144 |
|
} |
145 |
|
|
146 |
|
|
147 |
+ |
int |
148 |
|
headline(s) /* get relevant info from header */ |
149 |
|
char *s; |
150 |
|
{ |
156 |
|
formatval(fmt, s); |
157 |
|
wrongformat = strcmp(fmt, COLRFMT); |
158 |
|
} |
159 |
+ |
return(0); |
160 |
|
} |
161 |
|
|
162 |
|
|
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; |
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); |