From: Antonino A. D. <ad...@gm...> - 2006-08-05 23:52:22
|
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 |