[SDL] SDL_BlitSurface creates "holes" instead of alpha blending
Johannes Bauer
dfnsonfsduifb at gmx.de
Sun Nov 25 16:26:01 PST 2007
David Olofson schrieb:
> On Sunday 25 November 2007, Johannes Bauer wrote:
> [...]
>> So it should blit "src" on "dst". What it outputs is:
>>
>> RGBA 44 33 22 11
>> RGBA 0 0 0 0
>>
>> This is *way* weird. Shouldn't it output something like
>> RGBA 3 2 1 0
> [...]
>
> RGBA->RGBA blending is not supported by the SDL blitters! You'll need
> to use custom code or some add-on library for this. IIRC, SDL will
> just do opaque blits replacing destination A just like any other
> channel.
Jeez, you're right.
Thanks for hitting me with the brick on the head. Sometimes I need
that... Changed the destination surface to RGB and now everything works
like a charm!
Thanks a lot,
Greetings,
Johannes
PS: I tried the Video Game Character Evaluator you've liked on your
homepage and turned out to be an Asteroid. Neat ;-)
More information about the SDL
mailing list