[SDL] yet another question about SDL_BlitSurface

Torsten Giebl wizard at syntheticsw.com
Mon Aug 14 16:44:07 PDT 2006


Hello !


The problem is that when you use SDL_BlitSurface with your
PNGs with AlphaChannel you actually use these AlphaChannels
during the blittings.

You need to use

int SDL_SetAlpha(SDL_Surface *surface, Uint32 flags, Uint8 alpha);

to turn off the Alpha Attributes.

Then you can use SDL_BlitSurface without problems.



CU




More information about the SDL mailing list