kopia lustrzana https://github.com/backface/turtlestitch
Paint: flood fill issue fixed, thanks, Kartik!
rodzic
c29198225f
commit
d9e06c011c
|
@ -2281,3 +2281,4 @@ ______
|
|||
* Threads: fixed #591 fully copy local variables for sprite duplicates and (Scratch-like) clones
|
||||
* Portuguese translation update, thanks, Manuel!
|
||||
* fixed #590 (Russian translation syntax glitches) Thanks @alexf2000 !
|
||||
* Paint: flood fill issue fixed, thanks, Kartik!
|
||||
|
|
5
paint.js
5
paint.js
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue