diff options
| author | jmoenig <jens@moenig.org> | 2014-09-29 10:15:08 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-09-29 10:15:08 +0200 |
| commit | d9e06c011c767cfe0c36a5d29387afcd64ccb0be (patch) | |
| tree | 42d9b81ac0304fe8cd21cd5dd65804eef71eb397 /paint.js | |
| parent | c29198225ffccd6b84b7b975fbd7ef61722671a9 (diff) | |
| download | snap-d9e06c011c767cfe0c36a5d29387afcd64ccb0be.tar.gz snap-d9e06c011c767cfe0c36a5d29387afcd64ccb0be.zip | |
Paint: flood fill issue fixed, thanks, Kartik!
Diffstat (limited to 'paint.js')
| -rw-r--r-- | paint.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -56,6 +56,7 @@ June 3 - transformations (Kartik) June 4 - tweaks (Jens) Aug 24 - floodfill alpha-integer issue (Kartik) + Sep 29 - tweaks (Jens) */ /*global Point, Rectangle, DialogBoxMorph, fontHeight, AlignmentMorph, @@ -68,7 +69,7 @@ // Global stuff //////////////////////////////////////////////////////// -modules.paint = '2014-June-4'; +modules.paint = '2014-September-29'; // Declarations @@ -757,7 +758,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*255; + data[currentpoint * 4 + 3] = this.settings.primarycolor.a * 255; } } ctx.putImageData(img, 0, 0); |
