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

Re: [pygame] [BUG] SRCALPHA - unexpected behaviour.



My patch addresses that on both counts, I think.

It makes it so that when the bit depth is implicit, it still tried to
apply the SRCALPHA flag.

It also made it so that if SRCALPHA could not be applied to your bit
depth, it would raise an exception.

On 8/21/07, Lenard Lindstrom <len-l@xxxxxxxxx> wrote:
> 24 bit surfaces do work when the flags are 0. It was the SRCALPHA flag
> that caused problems, whether pygame was initialized or not. It was just
> that when the surface depth was set to 24 bits implicitly, then the
> SRCALPHA flag was ignored. If explicitly then the SRCALPHA flag was
> processed and pygame segfaulted.
>
>
> René Dudfield wrote:
> > ah, I fixed those segfaults in svn.  There were problems with
> > get_bytesize, and get_alpha too.
> >
> > I'm not sure why using a bitdepth of 24 doesn't work without
> > initializing pygame...  So that can still be considered a bug that
> > needs investigation.
> >
> >
>
> --
> Lenard Lindstrom
> <len-l@xxxxxxxxx>
>
>