partially fixed bezier curves in Chrome

This commit is contained in:
Skyler Lehmkuhl 2012-07-24 21:55:04 -04:00
parent 896a14ee5f
commit 5fc3f86eaa
1 changed files with 3 additions and 1 deletions

View File

@ -436,7 +436,9 @@ function Shape() {
} else if (this._shapedata[i][0]=="L") { } else if (this._shapedata[i][0]=="L") {
cr.lineTo(this._shapedata[i][1],this._shapedata[i][2]) cr.lineTo(this._shapedata[i][1],this._shapedata[i][2])
} else if (this._shapedata[i][0]=="C") { } 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) { if (this.filled) {