2009年6月8日 星期一

SDL on PSP

The correct method to set pixel value in a SDL_Surface is to use PixelFormat.Rshift, Gshift, Bshift, Ashift:

(*target32) = (r <<image->format->Rshift) |
(g <<image->format->Gshift) |
(b <<image->format->Bshift) |
(0x00 <<image->format->Ashift);