Fix : do not apply lighten if transparent

This commit is contained in:
jdescottes 2014-05-17 00:09:59 +02:00
parent b0318c8b11
commit d8772bdd8d

View File

@ -39,9 +39,6 @@
var step = isSinglePass ? this.step * 2 : this.step;
var pixelColor = frame.getPixel(col, row);
if (pixelColor === Constants.TRANSPARENT_COLOR) {
pixelColor = isDarken ? 'white' : 'black';
}
if (isDarken) {
color = window.tinycolor.darken(pixelColor, step);
} else {