128 |
|
case '1': |
129 |
|
singlepass = 1; |
130 |
|
break; |
131 |
+ |
case '2': |
132 |
+ |
singlepass = 0; |
133 |
+ |
break; |
134 |
|
case 'p': |
135 |
|
npts = atoi(argv[++i]) / 2; |
136 |
|
break; |
190 |
|
/* add new header info. */ |
191 |
|
printargs(i, argv, stdout); |
192 |
|
/* get picture size */ |
193 |
< |
if (fscanf(fin, "-Y %d +X %d\n", &yres, &xres) != 2) { |
193 |
> |
if (fgetresolu(&xres, &yres, fin) != (YMAJOR|YDECR)) { |
194 |
|
fprintf(stderr, "%s: bad picture size\n", progname); |
195 |
|
quit(1); |
196 |
|
} |
345 |
|
if (e < 1-1e-7 || e > 1+1e-7) /* record exposure */ |
346 |
|
printf("EXPOSURE=%e\n", e); |
347 |
|
printf("\n"); |
348 |
< |
printf("-Y %d +X %d\n", nrows, ncols); /* write picture size */ |
348 |
> |
fputresolu(YMAJOR|YDECR, ncols, nrows, stdout); /* resolution */ |
349 |
|
} |
350 |
|
|
351 |
|
|