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

Comparing ray/src/util/rpiece.c (file contents):
Revision 2.39 by schorsch, Thu Jun 26 00:58:11 2003 UTC vs.
Revision 2.41 by schorsch, Sun Jul 27 22:12:04 2003 UTC

# Line 401 | Line 401 | rpiece()                       /* render picture piece by piece */
401          VIEW  pview;
402          int  xorg, yorg;
403                                          /* compute view parameters */
404 <        copystruct(&pview, &ourview);
404 >        pview = ourview;
405          switch (ourview.type) {
406          case VT_PER:
407                  pview.horiz = 2.*180./PI*atan(
# Line 452 | Line 452 | int  xpos, ypos;
452          int  hr, vr;
453          register int  y;
454                                  /* check bounds */
455 <        if (xpos < 0 | ypos < 0 | xpos >= hmult | ypos >= vmult) {
455 >        if ((xpos < 0) | (ypos < 0) | (xpos >= hmult) | (ypos >= vmult)) {
456                  fprintf(stderr, "%s: requested piece (%d,%d) out of range\n",
457                                  progname, xpos, ypos);
458                  exit(cleanup(1));
# Line 460 | Line 460 | int  xpos, ypos;
460                                  /* check header from rpict */
461          guard_io();
462          getheader(fromrp, NULL, NULL);
463 <        if (!fscnresolu(&hr, &vr, fromrp) || hr != hres | vr != vres) {
463 >        if (!fscnresolu(&hr, &vr, fromrp) || (hr != hres) | (vr != vres)) {
464                  fprintf(stderr, "%s: resolution mismatch from %s\n",
465                                  progname, rpargv[0]);
466                  exit(cleanup(1));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines