I'm developing a map editing application, and all is going well, except for blitting transparent surfaces from scratch to the screen.
If i blit a .png with transparency, it merges them fine - the sprite on the background.
But if I blit a surface (Surface.new([width;height])), it leaves a black box, rather than the transparency.
How to I get the alpha channels to merge correctly from Surfaces made from scratch?
If i blit a .png with transparency, it merges them fine - the sprite on the background.
But if I blit a surface (Surface.new([width;height])), it leaves a black box, rather than the transparency.
How to I get the alpha channels to merge correctly from Surfaces made from scratch?