| 116 |
|
int argc; |
| 117 |
|
char *argv[]; |
| 118 |
|
{ |
| 119 |
+ |
extern char *getenv(); |
| 120 |
+ |
char *gv; |
| 121 |
|
int headline(); |
| 122 |
|
int i; |
| 123 |
|
|
| 124 |
|
progname = argv[0]; |
| 125 |
+ |
if ((gv = getenv("GAMMA")) != NULL) |
| 126 |
+ |
gamcor = atof(gv); |
| 127 |
|
|
| 128 |
|
for (i = 1; i < argc; i++) |
| 129 |
|
if (argv[i][0] == '-') |
| 631 |
|
XClearWindow(thedisplay, wind); |
| 632 |
|
map_rcolors(ourras, wind); |
| 633 |
|
if (fast) |
| 634 |
< |
make_rpixmap(ourras); |
| 634 |
> |
make_rpixmap(ourras, wind); |
| 635 |
|
redraw(0, 0, width, height); |
| 636 |
|
return(0); |
| 637 |
|
case ' ': /* clear */ |
| 939 |
|
if (fseek(fin, scanpos[y], 0) == -1) |
| 940 |
|
quiterr("fseek error"); |
| 941 |
|
cury = y; |
| 942 |
< |
} else if (scanpos != NULL) |
| 942 |
> |
} else if (scanpos != NULL && scanpos[y] == -1) |
| 943 |
|
scanpos[y] = ftell(fin); |
| 944 |
|
|
| 945 |
|
if (freadcolrs(scanline, xmax, fin) < 0) |