aboutsummaryrefslogtreecommitdiff
path: root/js/tools/BrushTool.js
diff options
context:
space:
mode:
authorPushkar Joshi2012-04-25 10:01:57 -0700
committerPushkar Joshi2012-04-25 10:01:57 -0700
commitd45b72b0e683d307ce3e798769f19627416015db (patch)
treeb3d24ef4b5d65821114879443122b6f109ee340c /js/tools/BrushTool.js
parent4290e20e2b2f4536f4365d02e1cd7a1418bc8ea9 (diff)
downloadninja-d45b72b0e683d307ce3e798769f19627416015db.tar.gz
render the calligraphic brush stroke in realtime on a rotated canvas
Diffstat (limited to 'js/tools/BrushTool.js')
-rw-r--r--js/tools/BrushTool.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tools/BrushTool.js b/js/tools/BrushTool.js
index 01350d1c..ab54d6bb 100644
--- a/js/tools/BrushTool.js
+++ b/js/tools/BrushTool.js
@@ -302,7 +302,7 @@ exports.BrushTool = Montage.create(ShapeTool, {
302 var deltaX = -snapManager.getStageWidth()*0.5; 302 var deltaX = -snapManager.getStageWidth()*0.5;
303 var deltaY = -snapManager.getStageHeight()*0.5; 303 var deltaY = -snapManager.getStageHeight()*0.5;
304 var swToGlobalMat = ViewUtils.getStageWorldToGlobalMatrix(); 304 var swToGlobalMat = ViewUtils.getStageWorldToGlobalMatrix();
305 this._selectedBrushStroke.drawToContext(ctx, deltaX, deltaY, true, swToGlobalMat); 305 this._selectedBrushStroke.drawToContext(ctx, true, deltaX, deltaY, swToGlobalMat);
306 306
307 /* 307 /*
308 origX=0;origY=0; 308 origX=0;origY=0;