Bernat Romagosa 2017-02-16 13:19:58 +01:00
rodzic ebc29c76d5
commit fec1055fb7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -740,7 +740,7 @@ PaintCanvasMorph.prototype.floodfill = function (sourcepoint) {
ctx = this.paper.getContext("2d"),
img = ctx.getImageData(0, 0, width, height),
data = img.data,
stack = [Math.round(sourcepoint.y) * width + sourcepoint.x],
stack = [Math.round(Math.round(sourcepoint.y) * width + sourcepoint.x)],
currentpoint,
read,
sourcecolor,