14 |
|
|
15 |
|
#include "color.h" |
16 |
|
|
17 |
+ |
#include "resolu.h" |
18 |
+ |
|
19 |
|
extern double atof(), pow(); |
20 |
|
|
21 |
|
double gamma = 2.2; /* gamma correction */ |
91 |
|
printargs(i, argv, stdout); |
92 |
|
fputformat(COLRFMT, stdout); |
93 |
|
putchar('\n'); |
94 |
< |
fputresolu(YMAJOR|YDECR, xmax, ymax, stdout); |
94 |
> |
fprtresolu(xmax, ymax, stdout); |
95 |
|
/* convert file */ |
96 |
|
pr2ra(head.ras_type); |
97 |
|
} else { |
98 |
|
/* get header info. */ |
99 |
|
if (checkheader(stdin, COLRFMT, NULL) < 0 || |
100 |
< |
fgetresolu(&xmax, &ymax, stdin) != (YMAJOR|YDECR)) |
100 |
> |
fgetresolu(&xmax, &ymax, stdin) < 0) |
101 |
|
quiterr("bad picture format"); |
102 |
|
/* write rasterfile header */ |
103 |
|
head.ras_magic = RAS_MAGIC; |