aboutsummaryrefslogtreecommitdiff
path: root/js/tools
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-02-06 11:35:49 -0800
committerNivesh Rajbhandari2012-02-06 11:35:49 -0800
commit486d9a31a85dd833a1c798049a00403756703034 (patch)
tree53d5fbf494a3630fac47b68969b51bac5ae69f0f /js/tools
parent671a27069db6a121507c2b342653aede685cff67 (diff)
downloadninja-486d9a31a85dd833a1c798049a00403756703034.tar.gz
Support use WebGL checkbox in the PI.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/tools')
-rw-r--r--js/tools/LineTool.js1
-rw-r--r--js/tools/OvalTool.js1
-rw-r--r--js/tools/RectTool.js1
3 files changed, 3 insertions, 0 deletions
diff --git a/js/tools/LineTool.js b/js/tools/LineTool.js
index 17157f23..6a948fd8 100644
--- a/js/tools/LineTool.js
+++ b/js/tools/LineTool.js
@@ -238,6 +238,7 @@ exports.LineTool = Montage.create(ShapeTool, {
238 canvas.elementModel.shapeModel.strokeStyle = strokeStyle; 238 canvas.elementModel.shapeModel.strokeStyle = strokeStyle;
239 239
240 canvas.elementModel.shapeModel.GLGeomObj = line; 240 canvas.elementModel.shapeModel.GLGeomObj = line;
241 canvas.elementModel.shapeModel.useWebGl = this.options.use3D;
241 } 242 }
242 else 243 else
243 { 244 {
diff --git a/js/tools/OvalTool.js b/js/tools/OvalTool.js
index 2fa5411b..446c6754 100644
--- a/js/tools/OvalTool.js
+++ b/js/tools/OvalTool.js
@@ -95,6 +95,7 @@ exports.OvalTool = Montage.create(ShapeTool, {
95 canvas.elementModel.shapeModel.strokeStyle = strokeStyle; 95 canvas.elementModel.shapeModel.strokeStyle = strokeStyle;
96 96
97 canvas.elementModel.shapeModel.GLGeomObj = oval; 97 canvas.elementModel.shapeModel.GLGeomObj = oval;
98 canvas.elementModel.shapeModel.useWebGl = this.options.use3D;
98 } 99 }
99 else 100 else
100 { 101 {
diff --git a/js/tools/RectTool.js b/js/tools/RectTool.js
index 94d80b53..6109ee4d 100644
--- a/js/tools/RectTool.js
+++ b/js/tools/RectTool.js
@@ -117,6 +117,7 @@ exports.RectTool = Montage.create(ShapeTool, {
117 canvas.elementModel.shapeModel.strokeStyle = strokeStyle; 117 canvas.elementModel.shapeModel.strokeStyle = strokeStyle;
118 118
119 canvas.elementModel.shapeModel.GLGeomObj = rect; 119 canvas.elementModel.shapeModel.GLGeomObj = rect;
120 canvas.elementModel.shapeModel.useWebGl = this.options.use3D;
120 } 121 }
121 else 122 else
122 { 123 {