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

Comparing ray/src/hd/rhd_odraw.c (file contents):
Revision 3.6 by gwlarson, Wed Dec 23 17:42:24 1998 UTC vs.
Revision 3.7 by gwlarson, Wed Dec 23 21:49:43 1998 UTC

# Line 591 | Line 591 | register struct ODview *vp;
591          n = rise + run;
592          while (n--)                     /* run out arm, checking depth */
593                  if (run2 > rise2) {
594                        if (depthchange(vp, x, y, x+xstep, y))
595                                break;
594                          x += xstep;
595                          rise2 += rise;
596 <                } else {
599 <                        if (depthchange(vp, x, y, x, y+ystep))
596 >                        if (depthchange(vp, x-xstep, y, x, y))
597                                  break;
598 +                } else {
599                          y += ystep;
600                          run2 += run;
601 +                        if (depthchange(vp, x, y-ystep, x, y))
602 +                                break;
603                  }
604          if (n < 0)                      /* found something? */
605                  return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines