Hi, Logan Benjamin <[EMAIL PROTECTED]> writes:
> I have 2 images in a window one draws underneath and one on the top. > > The image on the top has transparency but it seems to blend with the > window background rather than the image drawn below it, i'm using > png's and using SDL (so i can run my program in X). ImageProvider::RenderTo doesn't do alpha blending. You want to render the first image directly onto the window surface. Then create an offscreen surface using the surface description provided by the image provider. Render your second image to that surface. Then blit the offscreen surface to the window surface using DSBLIT_BLEND_ALPHACHANNEL. You may then release the offscreen surface again. Salut, Sven -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
