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