Fun with pixel formats

Check out the display format I’m setting:

slouken at coral:/home/slouken/SDL-0.6i/test > ./testwin -bpp 11
Display is in 32 bit mode! (4 bytes per pixel)
Red shift = 16 (0x00ff0000) (Lost bits = 0)
Green shift = 8 (0x0000ff00) (Lost bits = 0)
Blue shift = 0 (0x000000ff) (Lost bits = 0)
The optimal bits-per-pixel is 32
Set 640x480x11 mode
(video surface located in system memory)
Display is in 32 bit mode! (4 bytes per pixel)
Red shift = 16 (0x00ff0000) (Lost bits = 0)
Green shift = 8 (0x0000ff00) (Lost bits = 0)
Blue shift = 0 (0x000000ff) (Lost bits = 0)
Application screen is in 11 bit mode! (2 bytes per pixel)
Red shift = 8 (0x00000700) (Lost bits = 5)
Green shift = 3 (0x000000f8) (Lost bits = 3)
Blue shift = 0 (0x00000007) (Lost bits = 5)
testwin: setting colors
(image surface located in system memory)

grin It looked good.
See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/