How to check if a surface has an alpha-channel?

Is there a property or some function to check if an SDL_Surface has an
alpha-channel? I don’t mean this alpha-value that is for every pixel, but
the one that was loaded from the image.

Juhana Lehtiniemi wrote:

Is there a property or some function to check if an SDL_Surface has an
alpha-channel? I don’t mean this alpha-value that is for every pixel, but
the one that was loaded from the image.

perhaps just check and see if surface->format->Amask is not zero…–
-==-
Jon Atkins
http://jcatki.2y.net/