fixed a flood-fill rounding bug.

Again, thanks, @Simon-Mong !
upd4.1
Jens Mönig 2017-10-11 17:53:37 +02:00
rodzic caa5e3317c
commit 8f57f534c6
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -3695,6 +3695,7 @@ Fixes:
------
* Objects: make sure to fully remove parts from their anchor when deleting them
* Objects: fixed a bounding-box-detection bug in Costumes. Thanks, Simon Mong!
* Objects: fixed a flood-fill rounding bug. Thanks, Simon Mong!

Wyświetl plik

@ -4274,7 +4274,7 @@ SpriteMorph.prototype.floodFill = function () {
img = ctx.getImageData(0, 0, width, height),
dta = img.data,
stack = [
((height / 2) - Math.round(this.yPosition())) * width +
Math.round((height / 2) - this.yPosition()) * width +
Math.round(this.xPosition() + (width / 2))
],
current,