[SDL] SDL_BlitSurface on MacOSX 10.3.9

Michael Ryan Bannon ryan.bannon at humagade.com
Thu Jun 29 05:59:33 PDT 2006


No problem.  I'll try and have one for later today.  Thanks for the 
response.

"Torsten Giebl" <wizard at syntheticsw.com> wrote in message 
news:3617.141.99.122.11.1151530170.squirrel at mail.syntheticsw.com...
> Hello !
>
>
>> Some further information (I'm really hoping somebody might be able to
>> help me with this...) The problem, I believe, has something to do with 
>> the
>> alpha blending.  Each surface has the following done before the blit:
>>
>> surface->format->Amask = 0; // turns off per-pixel alpha; note that
>> surface is an SDL_Surface SDL_SetAlpha(surface, SDL_SRCALPHA,
>> constantAlpha);
>>
>> "cosntantAlpha" is a number between 0 and 255.  Now, if I set the Amask
>> parameter to 1, the SDL_SetAlpha call is ignored (I assume) because SDL
>> thinks that each pixel now has an individual alpha.  When I do this,
>> there's no more 2nd background, which is what I want, but at the same 
>> time
>> there's obviously no alpha blending.
>>
>> So, I've determined that per-surface alpha blending has something to do
>> with it (along with Mac OS 10.3.9).  Aside from that I'm stumped.
>
> Please put together a minimal example that
> shows the problem.
>
>
> CU 







More information about the SDL mailing list