103 |
|
int i; |
104 |
|
|
105 |
|
progname = argv[0]; |
106 |
< |
if ((gv = getenv("GAMMA")) != NULL) |
106 |
> |
if ((gv = getenv("DISPLAY_GAMMA")) != NULL) |
107 |
|
gamcor = atof(gv); |
108 |
|
|
109 |
|
for (i = 1; i < argc; i++) |
171 |
|
} |
172 |
|
|
173 |
|
|
174 |
+ |
int |
175 |
|
headline(s) /* get relevant info from header */ |
176 |
|
char *s; |
177 |
|
{ |
184 |
|
wrongformat = strcmp(fmt, COLRFMT); |
185 |
|
} else if (isview(s) && sscanview(&ourview, s) > 0) |
186 |
|
gotview++; |
187 |
+ |
return(0); |
188 |
|
} |
189 |
|
|
190 |
|
|
646 |
|
if (fseek(fin, scanpos[y], 0) == -1) |
647 |
|
quiterr("fseek error"); |
648 |
|
cury = y; |
649 |
< |
} else if (scanpos != NULL) |
649 |
> |
} else if (scanpos != NULL && scanpos[y] == -1) |
650 |
|
scanpos[y] = ftell(fin); |
651 |
|
|
652 |
|
if (freadcolrs(scanline, xmax, fin) < 0) |