4 /* TODO bring in a proper color manager with shade LUTs later */
6 void init_colormgr(void)
8 unsigned int i, r, g, b;
10 for(i=0; i<256; i++) {
17 b |= (b >> 2) | (b >> 4);
19 vga_setpalent(i, r, g, b);
23 int find_color(int r, int g, int b)
25 return (r & 0xe0) | ((g >> 3) & 0x1c) | ((b >> 6) & 3);
28 int shade_color(int col, int shade)
30 return col; /* TODO */