This commit is contained in:
Malte Hübner 2018-02-15 06:29:53 +01:00
parent 197108e74a
commit 0d4d0c79e3

View File

@ -54,10 +54,12 @@ class CanvasTilePainter
$destX = ($x - $startX) * $this->canvas->getTileSize() + $offsetX;
$destY = ($y - $startY) * $this->canvas->getTileSize() + $offsetY;
if ($destX > 0 && $destY > 0) {
$point = new Point($destX, $destY);
$tileImage->paste($this->canvas->getImage(), $point);
}
}
}
return $this;
}