7 unsigned short *transp;
17 static unsigned int cmap_len;
19 extern unsigned int red_len, green_len, blue_len, alpha_len;
20 extern struct fb_cmap fb_cmap;
22 extern int fb_set_cmap(void);
24 void directcolor_update_cmap(void)
28 for (i = 0; i < cmap_len; i++) {
30 fb_cmap.red[i] = clut[i].r;
32 fb_cmap.green[i] = clut[i].g;
34 fb_cmap.blue[i] = clut[i].b;
35 if (fb_cmap.transp && i < alpha_len)
36 fb_cmap.transp[i] = clut[i].a;