SDL_ColorKey!

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

Isn’t 8-bit palletized? So player->image->pixels is not actually the
color, but rather an index? And for 16bit image, you’d have to use
Unit16?–
Brian

: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

Isn’t 8-bit palletized? So player->image->pixels is not actually the
color, but rather an index? And for 16bit image, you’d have to use
Unit16?>

You where right i convert my image to indexed with my color trans as 0
index now i ve got an SDL_Parachute deployed ! any idea ??On Thu, 6 Jan 2000 hayward at slothmud.org wrote:

You where right i convert my image to indexed with my color trans as 0
index now i ve got an SDL_Parachute deployed ! any idea ??

OK i find my problem i used a BMP with RLE compression under gimp (and i
should’nt !!!)
thanks