Home | History | Annotate | Download | only in iteconfig

Lines Matching defs:cm

84 	colormap_t *cm;
164 cm = xgetcmap(fd, max_colors);
171 cm->entry[i] = val;
174 xioctl(fd, VIOCSCMAP, cm);
175 free(cm);
176 cm = xgetcmap(fd, max_colors);
187 printcmap(cm, ws.ws_col);
215 colormap_t *cm;
217 cm = malloc(sizeof(colormap_t) + ncolors * sizeof(u_long));
218 if (cm == NULL)
220 cm->first = 0;
221 cm->size = ncolors;
222 cm->entry = (u_long *) & cm[1];
223 xioctl(fd, VIOCGCMAP, cm);
224 return(cm);
228 printcmap(colormap_t *cm, int ncols)
232 switch (cm->type) {
238 cm->red_mask + 1, cm->green_mask + 1, cm->blue_mask + 1);
241 printf("greyscale levels: %d", cm->grey_mask + 1);
247 for (i = 0; i < cm->size; i++) {
248 printf("0x%08lx ", cm->entry[i]);