19 |
|
#include "resolu.h" |
20 |
|
|
21 |
|
|
22 |
+ |
#define GAMCOR 2.2 /* default gamma */ |
23 |
+ |
|
24 |
|
extern char *malloc(), *realloc(); |
25 |
|
|
26 |
|
int lzcomp = 0; /* use Lempel-Ziv compression? */ |
27 |
|
|
28 |
|
int greyscale = 0; /* produce greyscale image? */ |
29 |
|
|
30 |
< |
double gamcor = 2.2; /* gamma correction */ |
30 |
> |
double gamcor = GAMCOR; /* gamma correction */ |
31 |
|
|
32 |
|
int bradj = 0; /* brightness adjustment */ |
33 |
|
|
147 |
|
fputs(progname, stdout); |
148 |
|
if (bradj) |
149 |
|
printf(" -e %+d", bradj); |
150 |
+ |
if (gamcor != GAMCOR) |
151 |
+ |
printf(" -g %f", gamcor); |
152 |
|
fputs(" -r\n", stdout); |
153 |
|
fputformat(COLRFMT, stdout); |
154 |
|
putchar('\n'); |