13 |
|
Greg Ward 1 March 88, modified for arbitrary picture sizes |
14 |
|
*/ |
15 |
|
|
16 |
+ |
#include "standard.h" |
17 |
|
#include "ciq.h" |
18 |
|
|
19 |
|
#define table(m,r,g,b) hist[m[0][r]|m[1][g]|m[2][b]] /* histogram/pvtable */ |
44 |
|
if (synth) |
45 |
|
n = makecm(nw,&na); /* analyze histogram and synthesize colormap */ |
46 |
|
else { |
47 |
< |
bcopy(cm,color,sizeof color); |
47 |
> |
bcopy((char *)cm,(char *)color,sizeof color); |
48 |
|
n = nw; |
49 |
|
na = 0; |
50 |
|
for (i=0; i<len; i++) if (hist[i]) na++; |
61 |
|
draw_nodith(ocm); |
62 |
|
} |
63 |
|
|
64 |
< |
bcopy(color,cm,sizeof color); |
64 |
> |
bcopy((char *)color,(char *)cm,sizeof color); |
65 |
|
/*endclosest();*/ |
66 |
|
} |
67 |
|
|