From 972e0ce4df7b332601ad006ca8b7dd9e189a59ef Mon Sep 17 00:00:00 2001 From: Pushkar Joshi Date: Mon, 30 Jan 2012 14:38:48 -0800 Subject: do the fill before the stroke for the path, so the stroke width renders acc. to user specification --- js/helper-classes/RDGE/GLSubpath.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js/helper-classes/RDGE') 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() { 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]); prevAnchor = currAnchor; } - ctx.stroke(); if (this._isClosed){ ctx.fill(); } + ctx.stroke(); + -- cgit v1.2.3