From 5fc3f86eaae104e75a84bb8b3e76f3fc68d077d9 Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Tue, 24 Jul 2012 21:55:04 -0400 Subject: [PATCH] partially fixed bezier curves in Chrome --- base.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base.js b/base.js index 446a735..6a76ed5 100644 --- a/base.js +++ b/base.js @@ -436,7 +436,9 @@ function Shape() { } else if (this._shapedata[i][0]=="L") { cr.lineTo(this._shapedata[i][1],this._shapedata[i][2]) } else if (this._shapedata[i][0]=="C") { - cr.bezierCurveTo(this._shapedata[i][1],this._shapedata[i][2],this._shapedata[i][3],this._shapedata[i][4],this._shapedata[i][5],this._shapedata[i][6]) + cr.bezierCurveTo(this._shapedata[i][1],this._shapedata[i][2], + this._shapedata[i][3]-1e-5,this._shapedata[i][4]+1e-5, + this._shapedata[i][5]-1e-5,this._shapedata[i][6]+1e-5) } } if (this.filled) {