6 { 0, 11, 13, 15 }, { 0, 10, 12, 14 }, { 0, 3, 5, 7 }, { 0, 2, 4, 6 }, { 0, 15 }
9 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
10 { 0, 1, 2, 3, 4, 5, 20, 7, 56, 57, 58, 59, 60, 61, 62, 63 }
13 unsigned int fb_hMakeColor(
int bpp,
unsigned int index,
int r,
int g,
int b)
18 color = (b >> 3) | ((g << 3) & 0x07E0) | ((r << 8) & 0xF800);
27 return fb_hMakeColor(bpp, color, (color >> 16) & 0xFF, (color >> 8) & 0xFF, color & 0xFF) &
BPP_MASK(bpp);
37 for (i = 0; i < 256; i++) {
61 r = ((color & 0x3F) * 255.0) / 63.0;
62 g = (((color & 0x3F00) >> 8) * 255.0) / 63.0;
63 b = (((color & 0x3F0000) >> 16) * 255.0) / 63.0;
79 const unsigned char *mode_association;
90 index =
MID(0, -(index + 1), 3);
104 mode_association =
NULL;
107 for (i = 0; i < palette->
colors; i++) {
108 r = palette->
data[i * 3];
109 g = palette->
data[(i * 3) + 1];
110 b = palette->
data[(i * 3) + 2];
113 if (mode_association) {
125 if ((green < 0) || (blue < 0))