[SDL] SDL_ColorKey !!

Franck Nouyriga nouyriga at iteam.org
Thu Jan 6 11:49:14 PST 2000


I become Nuts !!! 
i ve just modified aliens to try myself and i m facing a stupid prob:
i load the player pict : SDL_LoadBMP("/home/----->/player.bmp");
and then i try to fix the transparent color as the first top left corner 
of my image so i use a standart syntax (I've already use it !!) 
:SDL_SetColorKey(player.image,(SDL_SRCCOLORKEY|SDL_RLEACCEL),*(Uint8
*)player.image->pixels);
I try this in 8 and 16 bits mode but it is NOT Working Please Help me 
I m sure it's stupid but i became NUTS now !!!
Thanks






More information about the SDL mailing list