aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE
diff options
context:
space:
mode:
authorPushkar Joshi2012-01-30 14:38:48 -0800
committerPushkar Joshi2012-01-30 14:38:48 -0800
commit972e0ce4df7b332601ad006ca8b7dd9e189a59ef (patch)
treec576b389aa1c558f727548257d5bff0008fa6c15 /js/helper-classes/RDGE
parentda7ad067b146200847b543faf288844221dff928 (diff)
downloadninja-972e0ce4df7b332601ad006ca8b7dd9e189a59ef.tar.gz
do the fill before the stroke for the path, so the stroke width renders acc. to user specification
Diffstat (limited to 'js/helper-classes/RDGE')
-rw-r--r--js/helper-classes/RDGE/GLSubpath.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/helper-classes/RDGE/GLSubpath.js b/js/helper-classes/RDGE/GLSubpath.js
index 79940e06..78315e40 100644
--- a/js/helper-classes/RDGE/GLSubpath.js
+++ b/js/helper-classes/RDGE/GLSubpath.js
@@ -1417,10 +1417,11 @@ function GLSubpath() {
1417 ctx.bezierCurveTo(prevAnchor.getNextX()-bboxMin[0],prevAnchor.getNextY()-bboxMin[1], currAnchor.getPrevX()-bboxMin[0], currAnchor.getPrevY()-bboxMin[1], currAnchor.getPosX()-bboxMin[0], currAnchor.getPosY()-bboxMin[1]); 1417 ctx.bezierCurveTo(prevAnchor.getNextX()-bboxMin[0],prevAnchor.getNextY()-bboxMin[1], currAnchor.getPrevX()-bboxMin[0], currAnchor.getPrevY()-bboxMin[1], currAnchor.getPosX()-bboxMin[0], currAnchor.getPosY()-bboxMin[1]);
1418 prevAnchor = currAnchor; 1418 prevAnchor = currAnchor;
1419 } 1419 }
1420 ctx.stroke();
1421 if (this._isClosed){ 1420 if (this._isClosed){
1422 ctx.fill(); 1421 ctx.fill();
1423 } 1422 }
1423 ctx.stroke();
1424
1424 1425
1425 1426
1426 1427