Pixelate filter: correctly handle mixed alpha areas

This commit is contained in:
Alberto Gasparin 2018-02-21 10:45:10 +00:00 committed by GitHub
parent 9a46ca6176
commit 05bd6bac38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,7 @@
red = red / pixelsInBin;
green = green / pixelsInBin;
blue = blue / pixelsInBin;
alpha = alpha / pixelsInBin;
// Draw this bin
for (x = xBinStart; x < xBinEnd; x += 1) {