21 |
|
|
22 |
|
#include "standard.h" |
23 |
|
#include "color.h" |
24 |
+ |
#include "driver.h" |
25 |
|
|
26 |
|
/* histogram resolution */ |
27 |
|
#define NRED 24 |
93 |
|
} |
94 |
|
|
95 |
|
|
96 |
< |
int |
97 |
< |
get_pixel(col, set_pixel) /* get pixel for color */ |
98 |
< |
COLOR col; |
99 |
< |
void (*set_pixel)(); |
96 |
> |
extern int |
97 |
> |
get_pixel( /* get pixel for color */ |
98 |
> |
COLOR col, |
99 |
> |
dr_newcolrf_t *newcolr |
100 |
> |
) |
101 |
|
{ |
102 |
|
int r, g, b; |
103 |
|
int cv[3]; |
142 |
|
h, r, g, b, clrtab[h].n); |
143 |
|
eputs(errmsg); |
144 |
|
#endif |
145 |
< |
(*set_pixel)(h, r, g, b); |
145 |
> |
(*newcolr)(h, r, g, b); |
146 |
|
} |
147 |
|
return(h); /* return pixel value */ |
148 |
|
} |