You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I can understand reading the code, that c function is only called when either the surface has no blend mode or when it has no alpha channel. this is my understanding of:
if (info.src_blend!=SDL_BLENDMODE_NONE&&src->format->Amask) {
...
} elseif (info.src_has_colorkey) {
alphablit_colorkey(&info);
which isn't exactly what you said, so perhaps I read it wrong?
Alongside the many blitters in Pygame, we have a function called
alphablit_colorkey
:alphablit_colorkey
implementation.It seems this blitter should be used with a surface that has both an alpha channel and a colorkey set. However, it doesn't appear to work as expected.
Here’s a minimal example where it should work:
I added print statements in
alphablit_colorkey
and the fallback SDL blitter to debug this. Here's the output:From the output, it seems the default SDL blitter is used instead of
alphablit_colorkey
.Is this a bug, or am I missing a condition that triggers alphablit_colorkey?
The text was updated successfully, but these errors were encountered: