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

Comparing ray/src/px/pcomb.c (file contents):
Revision 2.10 by greg, Thu Apr 29 14:32:07 1993 UTC vs.
Revision 2.12 by greg, Mon May 3 12:13:03 1993 UTC

# Line 484 | Line 484 | register char  *nam;
484                  lorg[fn][0] = lorg[fn][1] = lorg[fn][2] = 0.0;
485                  ldir[fn][0] = ldir[fn][1] = ldir[fn][2] = 0.0;
486                  if (input[fn].vw.type == 0)
487 <                        errno = ERANGE;
487 >                        errno = EDOM;
488                  else {
489 <                        pix2loc(loc, &input[fn].rs, xpos, ypos);
489 >                        pix2loc(loc, &input[fn].rs, xscan, ymax-1-yscan);
490                          if (viewray(lorg[fn], ldir[fn],
491                                          &input[fn].vw, loc[0], loc[1]) < 0)
492                                  errno = ERANGE;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines