WIP.
This commit is contained in:
parent
197108e74a
commit
0d4d0c79e3
@ -54,8 +54,10 @@ class CanvasTilePainter
|
|||||||
$destX = ($x - $startX) * $this->canvas->getTileSize() + $offsetX;
|
$destX = ($x - $startX) * $this->canvas->getTileSize() + $offsetX;
|
||||||
$destY = ($y - $startY) * $this->canvas->getTileSize() + $offsetY;
|
$destY = ($y - $startY) * $this->canvas->getTileSize() + $offsetY;
|
||||||
|
|
||||||
$point = new Point($destX, $destY);
|
if ($destX > 0 && $destY > 0) {
|
||||||
$tileImage->paste($this->canvas->getImage(), $point);
|
$point = new Point($destX, $destY);
|
||||||
|
$tileImage->paste($this->canvas->getImage(), $point);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user