Home | History | Annotate | Download | only in dev

Lines Matching defs:cm

279 	colormap_t	*cm;
285 cm = malloc(sizeof(ucm->entry[0])*ucm->size + sizeof(*cm),
287 if (cm == NULL)
290 memcpy(cm, ucm, sizeof(colormap_t));
291 cm->entry = (long *)&cm[1]; /* table directly after. */
293 copyin(ucm->entry,cm->entry,sizeof(ucm->entry[0])*ucm->size)) == 0)
294 && (vu->view == NULL || grf_use_colormap(vu->view, cm)))
296 free(cm, M_TEMP);