View Single Post
Old 06-07-2004, 11:35 AM   #2 (permalink)
joe_bruin
LOAD "*",8,1
 
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
joe_bruin is on a distinguished road
here's code that does pretty much the same thing for 16->32 conversion (taken from directfb). adjust it to do what you want.

Code:
#define RGB16_TO_RGB32(pixel)  ( (((pixel) & 0xF800) << 8) | \
                                 (((pixel) & 0x07E0) << 5) | \
                                 (((pixel) & 0x001F) << 3) )
joe_bruin is offline   Reply With Quote