On Sun, Feb 14, 2016 at 08:59:12PM +0100, Axel Dörfler wrote:
On 02/13/2016 05:02 PM, b.vitruvio@xxxxxxxxx wrote:
- *(destination) = ALPHABLEND(c1, *destination, alpha);
- *(destination+1) = ALPHABLEND(c2, *destination, alpha);
- *(destination+2) = ALPHABLEND(c3, *destination, alpha);
- *(destination+3) = 0x00;
+ destination[0] = ALPHABLEND(c1, destination[0], alpha);
+ destination[1] = ALPHABLEND(c2, destination[1], alpha);
+ destination[2] = ALPHABLEND(c3, destination[2], alpha);
I hope you noticed that this actually changes the meaning of the code?
If you did that, and your version is now correct (which means that it wasn't
before), it should have been part of the commit message.