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

Comparing ray/src/rt/rview.c (file contents):
Revision 2.29 by greg, Thu Aug 21 07:05:59 2008 UTC vs.
Revision 2.31 by greg, Fri Sep 5 19:45:42 2008 UTC

# Line 85 | Line 85 | rview(void)                            /* do a view */
85                          (*dev->comout)(buf);
86                          refine(&ptrunk, pdepth+1);
87                  }
88                if (waitrays() < 0)
89                        quit(1);
88                  if (dev->inpready)              /* noticed some input */
89                          command(": ");
90                  else                            /* finished this depth */
# Line 109 | Line 107 | again:
107                  ;
108          if (*args) *args++ = '\0';
109          else *++args = '\0';
110 +
111 +        if (waitrays() < 0)                     /* clear ray queue */
112 +                quit(1);
113          
114          switch (inpbuf[0]) {
115          case 'f':                               /* new frame (|focus|free) */
# Line 395 | Line 396 | refine(                                /* refine a node */
396                          growth += refine(p->kid+DR, pd-1);
397                  if (my < pframe.u)
398                          growth += refine(p->kid+UR, pd-1);
398        }
399                                                /* recompute sum */
400        if (growth) {
401                setcolor(p->v, 0.0, 0.0, 0.0);
402                for (i = 0; i < 4; i++)
403                        addcolor(p->v, p->kid[i].v);
404                scalecolor(p->v, 0.25);
399          }
400          return(growth);
401   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines