91 |
|
COLOR col; |
92 |
|
int (*set_pixel)(); |
93 |
|
{ |
94 |
+ |
extern char errmsg[]; |
95 |
|
int r, g, b; |
96 |
|
int cv[3]; |
97 |
|
register CNODE *tp; |
160 |
|
bcopy((char *)rmap, (char *)clrmap[RED], 256); |
161 |
|
bcopy((char *)gmap, (char *)clrmap[GRN], 256); |
162 |
|
bcopy((char *)bmap, (char *)clrmap[BLU], 256); |
163 |
+ |
} |
164 |
+ |
|
165 |
+ |
|
166 |
+ |
map_color(rgb, col) /* map a color to a byte triplet */ |
167 |
+ |
BYTE rgb[3]; |
168 |
+ |
COLOR col; |
169 |
+ |
{ |
170 |
+ |
rgb[RED] = map_col(col,RED); |
171 |
+ |
rgb[GRN] = map_col(col,GRN); |
172 |
+ |
rgb[BLU] = map_col(col,BLU); |
173 |
|
} |
174 |
|
|
175 |
|
|