Subject: SDL_gfx: alpha blending with 32bpp
From: Martin Bays
Date: Tue, 2 Sep 2008 13:36:41 +0100
To: aschiffler@ferzkopp.net

Hi,

Firstly: thanks for SDL_gfx, it really is great. Probably I shouldn't
wait till I have a bug to report before telling authors that.

Actually, I'm not entirely sure that this is a bug, or if it is that
it's with sdl_gfx. So please forgive me if not.

I am finding that alpha blending is not working when in 32 bpp mode,
both in an X with native bpp 16, and on the console with svgalib.
Specifically, things seem to be drawn as if the alpha channel were set
to 0xff.

I have independent corroboration that this also happens on a Mac, on a
system where giving SDL_SetVideoMode a requested bpp of 0 results in
bpp 32 (which I believe means that the desktop is at bpp 32, so this
isn't just an issue of translation).

Is this a known limitation of sdl, or of sdl_gfx? I couldn't find
anything saying so.

The test program "TestGfxPrimitives" just gave me a blank screen when
I asked for a bpp other than 16, so I hacked up a quick test program.
I attach it for your convenience (use -b N to set bpp). There are
screenshots of the results on my system in the tgz.

Hope this isn't entirely irrelevant,

Martin

P.S. the address in AUTHORS, <aschiffler@appwares.com>, seems to be
dead.