[SDL] SDL_SetAlpha Bug

Alexander Pipelka pipelka at bms-austria.com
Mon Mar 19 03:01:10 PST 2001


Pete Shinners wrote:

> i posted this back at the start of february, but between
> other people and myself not being around, it never got
> resolved. here it comes again :]
> -----------------------------------------------------------
> 
> 
> I've got some simple code trying to do a 'fade from white' by
> blitting an all white image with progressively lower alpha values.
> 
> the code as attached works fine, but if you change the starting
> alpha level to 255 (instead of the current 254) you'll find that
> changing the alphas doesn't have any effect.
> 
> in fact, it seems once any image has had it's alpha set to 255
> there is no way to set the alpha to any other value. the alpha
> values inside the SDL_Surface are being updated correctly, but
> the blit is still treating it as 255.
> 
> is this a bug on my end? a feature? or some brilliant display
> of short-sightedness on my end  :]

Nope.
I have exactly the same problem!

Alex




More information about the SDL mailing list