Fix for line width

This commit is contained in:
Chris Lee 2011-05-31 11:23:30 -07:00
parent dce11e13ae
commit 0bf40b8bef

View file

@ -61,6 +61,8 @@
ctx.moveTo(-this.width / 2, -this.height / 2);
ctx.lineTo(this.width / 2, this.height / 2);
ctx.lineWidth = this.strokeWidth;
// TODO: test this
// make sure setting "fill" changes color of a line
// (by copying fillStyle to strokeStyle, since line is stroked, not filled)