Original Post
I can't get the alpha blitting to work.
SDL_Surface *video_screen;
video_screen = SDL_SetVideoMode(300,300,32,SDL_ANYFORMAT);
SDL_Surface *picture;
picture = SDL_LoadBMP("pict.bmp");
SDL_SetAlpha(picture, SDL_SRCALPHA, 100);
picture = SDL_DisplayFormatAlpha(picture);
SDL_BlitSurface(picture,{0,0},video_screen,{0,0,30,30});
I can't quite remember how I wrote it, but I am sure it was right.
Does it have some´thing to do with how I initialize the *video_screen with SDL_SetVideoMode( ... , ... , ... , here in the flags field); ?
Can someone correct me here?
Anton Karlsson
Klingis Entertainment
Games with silly humor
[edited by - programering on February 26, 2003 3:41:01 AM]