I think i found a bug!
The following procedure applies:
init_screen(); // 32bpp, SW_SURFACE
srf_object = SDL_CreateRGBSurface (SDL_SWSURFACE, rect.w, rect.h, 32,
0,0,0,0);
background = SDL_LoadBMP("…"); // a RGB (24bit) bmp
do_some_drawing(srf_object);
SDL_SetAlpha(background, SDL_SRCALPHA, blend);
SDL_BlitSurface(background, &srcrect, srf_object, &dstrect);
blit_to_screen(srf_object);
–> RESULT: scrambled image on screen
when i convert the loaded bmp to indexed color (palette) everything works
fine!
Strange!
Alex