[maemo-developers] SDL, pixel format and little endian issue

From: Guillem Jover guillem.jover at nokia.com
Date: Fri Sep 5 17:30:35 EEST 2008
On Mon, 2008-09-01 at 16:27:55 +0300, ext Michael Stepanov wrote:
> SDL_GetRGB((Uint32)Pixel, m_pScreenImage->format, &red, &green, &blue);

> But now I have to fill pink pixel by specified color. And as I understand I
> should convert that color from 32bit to 16bit? How can I do it?

You can use SDL_MapRGB.

regards,
guillem

More information about the maemo-developers mailing list