diff options
author | Pushkar Joshi | 2012-04-25 10:01:57 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-04-25 10:01:57 -0700 |
commit | d45b72b0e683d307ce3e798769f19627416015db (patch) | |
tree | b3d24ef4b5d65821114879443122b6f109ee340c /js/tools/BrushTool.js | |
parent | 4290e20e2b2f4536f4365d02e1cd7a1418bc8ea9 (diff) | |
download | ninja-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.js | 2 |
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; |