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

Comparing ray/src/util/glaresrc.c (file contents):
Revision 1.13 by greg, Fri Apr 19 17:41:03 1991 UTC vs.
Revision 1.14 by greg, Mon Apr 22 08:20:58 1991 UTC

# Line 278 | Line 278 | close_allsrcs()                        /* done with everything */
278   donesource(sp)                  /* finished with this source */
279   register struct source  *sp;
280   {
281        FVECT   dthis, dright;
281          register struct srcspan *ss;
282          int     h, n;
283          double  hsum, vsum, d;
# Line 290 | Line 289 | register struct source *sp;
289          for (ss = sp->first; ss != NULL; ss = ss->next) {
290                  sp->brt += ss->brsum;
291                  n += ss->r - ss->l;
292 <                for (h = ss->r-1; h >= ss->l; h--) {
292 >                for (h = ss->l; h < ss->r; h++) {
293                          d = pixsize(h, ss->v);
294                          hsum += d*h;
295                          vsum += d*ss->v;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines