Simple question

Hello there,

I've been working with GGI for some time, but now I want to port

some of my applications to SDL. How do I calculate the “pitch” to use
with the SDL_CreateRGBSurfaceFrom, once I have an image loaded into a
buffer, with it’s width and height? And what are the R, G and B masks
for, and how do I find out what are they?

This is a great question for the mailing list:

Akawaka, do you have a page with a good description of this information?
It’s asked often enough that it should be in the FAQ.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software