122 |
|
/* put header */ |
123 |
|
printargs(argc, argv, stdout); |
124 |
|
putchar('\n'); |
125 |
< |
printf("-Y %d +X %d\n", ymax, xmax); |
125 |
> |
fputresolu(YMAJOR|YDECR, xmax, ymax, stdout); |
126 |
|
/* convert file */ |
127 |
|
tg2ra(&head); |
128 |
|
} else { |
280 |
|
return(NULL); |
281 |
|
/* discard header */ |
282 |
|
getheader(p->fp, NULL); |
283 |
< |
if (fscanf(p->fp, "-Y %d +X %d\n", &ymax, &xmax) != 2) |
283 |
> |
if (fgetresolu(&xmax, &ymax, p->fp) != (YMAJOR|YDECR)) |
284 |
|
quiterr("bad picture size"); |
285 |
|
p->nexty = 0; |
286 |
|
p->bytes_line = 0; /* variable length lines */ |