261 |
|
fputs(": illegal crop\n", stderr); |
262 |
|
return(1); |
263 |
|
} |
264 |
< |
printargs(argc, argv, stdout); |
264 |
> |
printargs(5, argv, stdout); |
265 |
|
if (gotvw) { /* adjust view? */ |
266 |
|
double p0[2], p1[2]; |
267 |
|
const char *err; |
271 |
|
p1[0] = (cmin+ncols)/(double)res.xr; |
272 |
|
p1[1] = (rmin+nrows)/(double)res.yr; |
273 |
|
} else { |
274 |
< |
p0[1] = cmin/(double)res.xr; |
275 |
< |
p0[0] = rmin/(double)res.yr; |
276 |
< |
p1[1] = (cmin+ncols)/(double)res.xr; |
277 |
< |
p1[0] = (rmin+nrows)/(double)res.yr; |
274 |
> |
p0[0] = rmin/(double)res.xr; |
275 |
> |
p0[1] = cmin/(double)res.yr; |
276 |
> |
p1[0] = (rmin+nrows)/(double)res.xr; |
277 |
> |
p1[1] = (cmin+ncols)/(double)res.yr; |
278 |
|
} |
279 |
|
if (res.rt & XDECR) { |
280 |
|
p0[0] = 1. - p0[0]; |