update for darken/lighten

This commit is contained in:
jdescottes 2014-05-17 00:12:11 +02:00
parent e9a5e27266
commit 24506def11
2 changed files with 2 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -21004,9 +21004,6 @@ if (typeof Function.prototype.bind !== "function") {
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 {