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

Comparing ray/src/rt/colortab.c (file contents):
Revision 2.6 by greg, Tue Feb 25 02:47:22 2003 UTC vs.
Revision 2.7 by greg, Tue May 13 17:58:33 2003 UTC

# Line 84 | Line 84 | int    ncolors;
84                                  /* partition color space */
85          cut(ctree, 0, CLRCUBE, 0, ncolors);
86                                  /* clear histogram */
87 <        bzero((char *)histo, sizeof(histo));
87 >        bzero((void *)histo, sizeof(histo));
88                                  /* return number of colors used */
89          return(ncolors);
90   }
# Line 161 | Line 161 | void
161   set_cmap(rmap, gmap, bmap)      /* set custom color correction map */
162   BYTE    *rmap, *gmap, *bmap;
163   {
164 <        bcopy((char *)rmap, (char *)clrmap[RED], 256);
165 <        bcopy((char *)gmap, (char *)clrmap[GRN], 256);
166 <        bcopy((char *)bmap, (char *)clrmap[BLU], 256);
164 >        bcopy((void *)rmap, (void *)clrmap[RED], 256);
165 >        bcopy((void *)gmap, (void *)clrmap[GRN], 256);
166 >        bcopy((void *)bmap, (void *)clrmap[BLU], 256);
167   }
168  
169  
# Line 193 | Line 193 | int    c0, c1;
193          }
194                                          /* split box */
195          *tree = split(box);
196 <        bcopy((char *)box, (char *)kb, sizeof(kb));
196 >        bcopy((void *)box, (void *)kb, sizeof(kb));
197                                                  /* do left (lesser) branch */
198          kb[prim(*tree)][1] = part(*tree);
199          cut(tree+(1<<level), level+1, kb, c0, (c0+c1)>>1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines