WIP.
This commit is contained in:
parent
197108e74a
commit
0d4d0c79e3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user