[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] SDL vs. Pygame: Alpha Differences



On 12/23/06, René Dudfield <renesd@xxxxxxxxx> wrote:
maybe I could put in a new blit mode for you before this release... if
it can't be done already.

hey Rene, what you mentioned below can absolutely be done already, so
I don't think a new blit is needed there. However I do think it would
be nice to improve ALPHA_BLEND in pygame's own blit before release


Do you want this?
DR, DG, DB, DA = SR, SG, SB, DA

This is exactly what pygame blit will do if:
1. SDL_SRCALPHA is on the source
2. SDL_SRCALPHA is NOT on the dest
3. the source alpha is 255 everywhere