Re: FB_VISUAL_TRUECOLOR vs.FB_VISUAL_DIRECTCOLOR

"Antonino A. Daplas" <[email protected]> Sun, 06 Aug 2006 11:27:49 +0800
Newsgroups gmane.linux.fbdev.user
Message-ID <[email protected]>
James Lehman wrote:
> But if I leave the fb at 8 bpp and my code changes the bpp at runtime to 32,
> it looks like the first 16 console colors have been written into the color
> map.
> 

Try switching the VC to KD_GRAPHICS mode before you run your app. Then
switch it back to KD_TEXT on exit, ie:

fd = open("/dev/tty0", FLAG);
ioctl(fd, KDSETMODE, KD_GRAPHICS);

Let me know if doing the above still writes the console palette to the
cmap. That will be a bug.

Tony

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV