Re: FB_VISUAL_TRUECOLOR vs. FB_VISUAL_DIRECTCOLOR
"Antonino A. Daplas" <[email protected]> Sun, 06 Aug 2006 07:52:15 +0800
| Newsgroups | gmane.linux.fbdev.user |
|---|---|
| Message-ID | <[email protected]> |
Antonino A. Daplas wrote: > James Lehman wrote: >> Can someone please explain the difference between these two display types? >> >> FB_VISUAL_TRUECOLOR >> FB_VISUAL_DIRECTCOLOR >> >> My frame buffer API, ezfb, works well with cards that are >> FB_VISUAL_TRUECOLOR, but not so well with cards that are >> FB_VISUAL_DIRECTCOLOR. >> >> http://www.akrobiz.com/ezfb/ > > i = red; > red <<= 8; > red_map[i] = red; Wrong pseudocode, should be: i = red; red |= red << 8; red_map[i] = red; 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