[SDL] Alpha blending bug - fixed?
Ryan C. Gordon
icculus at icculus.org
Tue Nov 21 13:30:23 PST 2006
> The only thing I could find out was that ashift is 32-bit aligned but
> sf->Ashift isn't:
I don't think it's an alignment issue, since GCC should be smart enough
to get it into a register even if unaligned...however, sf->AShift is 8
bits, and ashift is 32, which is probably why you get different
results...it probably landed in (say) %al instead of %eax, leaving junk
in the rest of the register's bits.
Try the attached patch and see if it works, too.
--ryan.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: blitbug2.diff
Url: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20061121/1ba1cefe/attachment.diff
More information about the SDL
mailing list