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

Comparing ray/src/px/ciq.c (file contents):
Revision 2.3 by greg, Tue May 13 17:58:33 2003 UTC vs.
Revision 2.4 by schorsch, Mon Jun 30 14:59:12 2003 UTC

# Line 10 | Line 10 | Paul Heckbert  16 April 82, cleaned up 8 June 86
10   Greg Ward       1 March 88, modified for arbitrary picture sizes
11   */
12  
13 + #include <string.h>
14 +
15   #include "standard.h"
16   #include "ciq.h"
17  
# Line 41 | Line 43 | colormap cm;           /* quantization colormap */
43      if (synth)
44          n = makecm(nw,&na);     /* analyze histogram and synthesize colormap */
45      else {
46 <        bcopy((void *)cm,(void *)color,sizeof color);
46 >        memcpy((void *)color,(void *)cm,sizeof color);
47          n = nw;
48          na = 0;
49          for (i=0; i<len; i++) if (hist[i]) na++;
# Line 58 | Line 60 | colormap cm;           /* quantization colormap */
60          draw_nodith(ocm);
61      }
62  
63 <    bcopy((void *)color,(void *)cm,sizeof color);
63 >    memcpy((void *)cm,(void *)color,sizeof color);
64      /*endclosest();*/
65   }
66  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines