SDL_SetAlpha Problems

I am working with SDL_SetAlpha and a PNG with alpha channel. The file
has 100% transparency and the rest is solid. I want to e able to use
this file at different alpha levels via

SDL_SetAlpha(object->surface, SDL_SRCALPHA, alphavalue);

But no matter what I set alphavalue to I get the same results, clear
where it is supposed to be but no alpha for the rest of the image, even
though I am setting the whole image to like 50% opacity with a value of
around 128. Setting this to zero or not even calling it at all still
yields the same results. Thoughts?—
Coleman Nitroy
@Coleman_Nitroy
nitroy.com/cole
l33t b4k4^2 //4rR10r

Coleman Nitroy wrote:

I am working with SDL_SetAlpha and a PNG with alpha channel.

[…]

But no matter what I set alphavalue to I get the same results, clear
where it is supposed to be but no alpha for the rest of the image,
even though I am setting the whole image to like 50% opacity with a
value of around 128. Setting this to zero or not even calling it at
all still yields the same results. Thoughts?

http://sdldoc.csn.ul.ie/sdlsetalpha.php

Also note that per-pixel and per-surface alpha cannot be combined; the per-pixel alpha is always used if available

i hate this also. :o)

best regards …
clemens