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++) |
147 |
|
} |
148 |
|
|
149 |
|
|
150 |
+ |
int |
151 |
|
headline(s) /* get relevant info from header */ |
152 |
|
char *s; |
153 |
|
{ |
159 |
|
formatval(fmt, s); |
160 |
|
wrongformat = strcmp(fmt, COLRFMT); |
161 |
|
} |
162 |
+ |
return(0); |
163 |
|
} |
164 |
|
|
165 |
|
|
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; |
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); |