Merge pull request #571 from Hardmath123/bucket-color

Bucket color issue
pull/3/merge
Jens Mönig 2014-09-29 10:10:54 +02:00
commit c29198225f
2 zmienionych plików z 4 dodań i 3 usunięć

1
.gitignore vendored
Wyświetl plik

@ -1 +1,2 @@
.DS_Store
*.swp

Wyświetl plik

@ -49,13 +49,13 @@
May 14 - bugfixes, Snap integration (Jens)
May 16 - flat design adjustments (Jens)
July 12 - pipette tool, code formatting adjustments (Jens)
September 16 - flood fill freeze fix (Kartik)
Sept 16 - flood fill freeze fix (Kartik)
Jan 08 - mouse leave dragging fix (Kartik)
Feb 11 - dynamically adjust to stage dimensions (Jens)
Apr 30 - localizations (Manuel)
June 3 - transformations (Kartik)
June 4 - tweaks (Jens)
Aug 24 - floodfill alpha-integer issue (Kartik)
*/
/*global Point, Rectangle, DialogBoxMorph, fontHeight, AlignmentMorph,
@ -757,7 +757,7 @@ PaintCanvasMorph.prototype.floodfill = function (sourcepoint) {
data[currentpoint * 4] = this.settings.primarycolor.r;
data[currentpoint * 4 + 1] = this.settings.primarycolor.g;
data[currentpoint * 4 + 2] = this.settings.primarycolor.b;
data[currentpoint * 4 + 3] = this.settings.primarycolor.a;
data[currentpoint * 4 + 3] = this.settings.primarycolor.a*255;
}
}
ctx.putImageData(img, 0, 0);