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"; |
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++) |
168 |
|
short xsiz, ysiz; |
169 |
|
} video[] = { |
170 |
|
{_MRES256COLOR, 320, 200}, |
171 |
< |
{_VRES256COLOR, 640, 400}, |
171 |
> |
{_VRES256COLOR, 640, 480}, |
172 |
|
{_SVRES256COLOR, 800, 600}, |
173 |
|
{_XRES256COLOR, 1024, 768}, |
174 |
< |
-1 |
174 |
> |
{-1, 0, 0} |
175 |
|
}; |
176 |
|
struct videoconfig config; |
177 |
|
register int i; |
379 |
|
cvals[ourblack] = _BLACK; |
380 |
|
cvals[ourwhite] = _BRIGHTWHITE; |
381 |
|
for (i = 0; i < maxcolors; i++) |
382 |
< |
cvals[i+minpix] = clrtab[i][BLU]<<14 & 0x3f0000L | |
382 |
> |
cvals[i+minpix] = (long)clrtab[i][BLU]<<14 & 0x3f0000L | |
383 |
|
clrtab[i][GRN]<<6 & 0x3f00 | |
384 |
|
clrtab[i][RED]>>2; |
385 |
|
_remapallpalette(cvals); |