Problem with transparant blit

Hello!

I’m new to SDL and have a question regarding SDL_BlitSurface function. I
have set up the screen to 320x200 in 16bit color mode. I use a "buffer"
page that I draw to and once each frame this buffer is blitted to the
video-surface. My problem is this. I have sprites which I have set the
transparant pixel on using SDL_SetColorKey. These are then blitted to the
buffer page. But the problem is that the blit isn’t transparant. I get a
box around each sprite that are black (my transparant color is pink (255,
0, 255)).

What’s wrong? Should I set transparancy info for the destination surface
also?

/ Niklas----------------------------------------------------------------------

Send and receive Hotmail on your mobile device: Click Here