Lines Matching +full:36 +full:- +full:bit
7 - example of relevant structures in fbdev as used for a 3-bit grayscale cmap::
20 info->cmap.red[i] = (((2*i)+1)*(0xFFFF))/16;
21 memcpy(info->cmap.green, info->cmap.red, sizeof(u16)*8);
22 memcpy(info->cmap.blue, info->cmap.red, sizeof(u16)*8);
24 - X11 apps do something like the following when trying to use grayscale::
29 sprintf(colorspec, "rgb:%x/%x/%x", i*36,i*36,i*36);
41 xc-011010/programs/Xserver/dix/colormap.c::
45 dr = (long) pent->co.local.red - prgb->red;
46 dg = (long) pent->co.local.green - prgb->green;
47 db = (long) pent->co.local.blue - prgb->blue;
53 directly from the info->cmap.red that was listed above. The prgb is the rgb