[SDL] Blit RGBA Surface on RGB Surface with colorkey
Davide "M3xican" Coppola
dmc at dev-labs.net
Fri Jul 7 05:08:55 PDT 2006
Hi,
I'm trying to blit a RGBA surface (A) on a RGB surface with colorkey (B),
these surfaces are 2 images loaded with SDL_Image.
I have tried evey combination of SDL_SetAlpha flags on these surfaces,
but blitting A on B gives wrong/weird results.
The only solution I found is create a new surface (C) with same B
dimensions
and A RGBA data, Set C Alpha flags to 0 and then blit B and A on C.
Does exist a better way to solve the problem?
--
Davide "M3xican" Coppola
--------------------------------------------------------------------
email: dmc at dev-labs.net
homep: http://dmc.dev-labs.net
ICQ: 104241710
MSN: bad_hangover at hotmail.it
Don't use IE and OE!
Download FireFox and ThunderBird: http://www.mozilla.org/
--------------------------------------------------------------------
More information about the SDL
mailing list