ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rcrop.c
(Generate patch)

Comparing ray/src/util/rcrop.c (file contents):
Revision 1.8 by greg, Tue Mar 15 20:54:49 2022 UTC vs.
Revision 1.9 by greg, Wed Mar 16 01:51:16 2022 UTC

# Line 261 | Line 261 | main(int argc, char *argv[])
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;
# Line 271 | Line 271 | main(int argc, char *argv[])
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];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines