| 112 |
|
} |
| 113 |
|
|
| 114 |
|
/* write out boundaries */ |
| 115 |
< |
printf("-Y %d +X %d\n", ourview.vresolu, ourview.hresolu); |
| 115 |
> |
fputresolu(YMAJOR|YDECR, ourview.hresolu, ourview.vresolu, stdout); |
| 116 |
|
|
| 117 |
|
ypos = ourview.vresolu - salvage(oldfile); /* find top line */ |
| 118 |
|
fillscanline(scanbar[0], ypos, psample); /* top scan */ |
| 263 |
|
/* discard header */ |
| 264 |
|
getheader(fp, NULL); |
| 265 |
|
/* get picture size */ |
| 266 |
< |
if (fscanf(fp, "-Y %d +X %d\n", &y, &x) != 2) { |
| 266 |
> |
if (fgetresolu(&x, &y, fp) != (YMAJOR|YDECR)) { |
| 267 |
|
sprintf(errmsg, "bad recover file \"%s\"", oldfile); |
| 268 |
|
error(WARNING, errmsg); |
| 269 |
|
fclose(fp); |