# | Line 14 | Line 14 | static char SCCSid[] = "$SunId$ LBL"; | |
---|---|---|
14 | #include <fcntl.h> | |
15 | #endif | |
16 | ||
17 | + | #include <math.h> |
18 | + | |
19 | #include <ctype.h> | |
20 | ||
21 | #include "color.h" | |
22 | ||
23 | #include "resolu.h" | |
24 | ||
23 | – | extern double pow(); |
25 | ||
26 | extern char *malloc(); | |
27 | ||
# | Line 40 | Line 41 | int argc; | |
41 | char *argv[]; | |
42 | { | |
43 | char inpbuf[2]; | |
44 | < | double gamma = 2.2; |
44 | > | double gamcor = 2.2; |
45 | int binflag = 1; | |
46 | int reverse = 0; | |
47 | int ptype; | |
# | Line 52 | Line 53 | char *argv[]; | |
53 | if (argv[i][0] == '-') | |
54 | switch (argv[i][1]) { | |
55 | case 'g': | |
56 | < | gamma = atof(argv[++i]); |
56 | > | gamcor = atof(argv[++i]); |
57 | break; | |
58 | case 'e': | |
59 | if (argv[i+1][0] != '+' && argv[i+1][0] != '-') | |
# | Line 83 | Line 84 | char *argv[]; | |
84 | progname, argv[i+1]); | |
85 | exit(1); | |
86 | } | |
87 | < | setcolrgam(gamma); |
87 | > | setcolrgam(gamcor); |
88 | if (reverse) { | |
89 | /* get header */ | |
90 | if (read(fileno(stdin), inpbuf, 2) != 2 || inpbuf[0] != 'P') |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |