[SDL] About Screen Fading with alpha

Dan moos at pt.lu
Wed Aug 8 04:20:01 PDT 2001

i dont know exactly but, you only set the screen to alpha value of 128 which
is only 1/2 transparent! if int alpha should be the alpha value to set:

> void Darken_Screen(SDL_Surface *main_screen,int alpha)
> {
>     Set_Per_Pixel_Alpha(main_screen,alpha); //which got from mailing list
instead of
>     Set_Per_Pixel_Alpha(main_screen,128); //which got from mailing list
>     SDL_Flip(main_screen);
> }

if it doesnt help, forgive me, i dont use sdl at the moment :)

More information about the SDL mailing list