Hi there,
I am programming with Linux vesafb and below is my code which works for mobility radeon 7500 but does NOT work for GT 330M:
Code:
unsigned short R = (Pixel.R << 8);
unsigned short G = (Pixel.G << 8);
unsigned short B = (Pixel.B << 8);
fb_cmap Palette = {Index, 1, &R, &G, &B, NULL};
ioctl(Device, FBIOPUTCMAP, &Palette);
while below code works for GT 330M:
Code:
unsigned short R = (Pixel.R << 6);
unsigned short G = (Pixel.G << 6);
unsigned short B = (Pixel.B << 6);
fb_cmap Palette = {Index, 1, &R, &G, &B, NULL};
ioctl(Device, FBIOPUTCMAP, &Palette);
So my question is, how should I write my code to get the 6 or 8 during initialization? I have searched much on google but seems no luck.
Thanks in advance!