14 |
|
|
15 |
|
#include "color.h" |
16 |
|
|
17 |
+ |
#include "resolu.h" |
18 |
|
|
19 |
|
#define MAXFILE 32 |
20 |
|
|
182 |
|
} |
183 |
|
/* get picture size */ |
184 |
|
if (fgetresolu(&input[nfile].xres, &input[nfile].yres, |
185 |
< |
input[nfile].fp) != (YMAJOR|YDECR)) { |
185 |
> |
input[nfile].fp) < 0) { |
186 |
|
fprintf(stderr, "%s: bad picture size\n", |
187 |
|
input[nfile].name); |
188 |
|
quit(1); |
230 |
|
/* add new header info. */ |
231 |
|
printargs(argc, argv, stdout); |
232 |
|
fputformat(COLRFMT, stdout); |
233 |
< |
printf("\n-Y %d +X %d\n", ysiz, xsiz); |
233 |
> |
putchar('\n'); |
234 |
> |
fprtresolu(xsiz, ysiz, stdout); |
235 |
|
|
236 |
|
compos(); |
237 |
|
|
340 |
|
return(NULL); |
341 |
|
if (checkheader(fp, COLRFMT, NULL) < 0) |
342 |
|
goto err; |
343 |
< |
if (fgetresolu(xp, yp, fp) != (YMAJOR|YDECR)) |
343 |
> |
if (fgetresolu(xp, yp, fp) < 0) |
344 |
|
goto err; |
345 |
|
return(fp); |
346 |
|
err: |