Fixed some bugs 🆒

This commit is contained in:
unsettledgames
2020-03-15 16:32:48 +01:00
parent 4cac83530d
commit 7dec2f1490
5 changed files with 43 additions and 9 deletions

View File

@@ -93,7 +93,13 @@ function drawRectangle(x, y) {
// Drawing the rect
vfxContext.beginPath();
vfxContext.rect(startRectX, startRectY, x - startRectX, y - startRectY);
if ((rectangleSize % 2 ) == 0) {
vfxContext.rect(startRectX - 0.5, startRectY - 0.5, x - startRectX, y - startRectY);
}
else {
vfxContext.rect(startRectX, startRectY, x - startRectX, y - startRectY);
}
vfxContext.setLineDash([]);
vfxContext.stroke();