small bugfixes

This commit is contained in:
cantbesure1
2017-11-13 17:28:06 -08:00
parent e0c77e6715
commit 3931220adf
2 changed files with 27 additions and 15 deletions

View File

@@ -90,13 +90,15 @@ function Guide()
var from = dotgrid.translation.from;
var to = dotgrid.translation.to;
ctx.beginPath();
ctx.moveTo((from.x * -2)+20,(from.y * 2)+20);
ctx.lineTo((to.x * -2)+20,(to.y * 2)+20);
ctx.lineCap="round";
ctx.lineWidth = 5;
ctx.strokeStyle = dotgrid.theme.active.f_high;
ctx.stroke();
ctx.closePath();
if(to.x<=0) {
ctx.beginPath();
ctx.moveTo((from.x * -2)+20,(from.y * 2)+20);
ctx.lineTo((to.x * -2)+20,(to.y * 2)+20);
ctx.lineCap="round";
ctx.lineWidth = 5;
ctx.strokeStyle = dotgrid.theme.active.f_high;
ctx.stroke();
ctx.closePath();
}
}
}