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

Comparing ray/src/hd/viewbeams.c (file contents):
Revision 3.4 by greg, Fri Jun 20 00:25:49 2003 UTC vs.
Revision 3.6 by schorsch, Mon Jul 21 22:30:18 2003 UTC

# Line 5 | Line 5 | static const char      RCSid[] = "$Id$";
5   * Convert view to beam list.
6   */
7  
8 + #include <string.h>
9 +
10   #include "rholo.h"
11   #include "view.h"
12   #include "random.h"
# Line 61 | Line 63 | BEAMLIST       *blp;
63          int     v;
64          register int    h, hd;
65                                                  /* clear section flags */
66 <        bzero((char *)sectlist, sizeof(sectlist));
66 >        memset((char *)sectlist, '\0', sizeof(sectlist));
67                                                  /* identify view sections */
68          for (v = 0; v <= MINRES; v++)
69                  for (h = 0; h <= MINRES; h++) {
# Line 138 | Line 140 | loopexit:
140                                                          /* add samples */
141                          add2blist(hd, hdbindex(hdlist[hd],gc), sampquant);
142                  }
143 <        copystruct(blp, &blist);                /* transfer beam list */
143 >        *blp = blist;           /* transfer beam list */
144          return(sectlist);                       /* all done! */
145   }
146  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines