diff options
author | hwc487 | 2012-06-14 16:20:01 -0700 |
---|---|---|
committer | hwc487 | 2012-06-14 16:20:01 -0700 |
commit | 2bcc1d3c6c1e31f5ca4310c581602bfa8b8a1265 (patch) | |
tree | 54f8fb15e1f073f159e577af8324a447789d7a64 /assets | |
parent | f0fc7a5678093cce986bd99fef2c5c88add19b68 (diff) | |
parent | 5ee0c89fa0c7acc280ff3b884767e8513fd0b315 (diff) | |
download | ninja-2bcc1d3c6c1e31f5ca4310c581602bfa8b8a1265.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Textures
Diffstat (limited to 'assets')
-rw-r--r-- | assets/canvas-runtime.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/assets/canvas-runtime.js b/assets/canvas-runtime.js index cd673854..091d8b7a 100644 --- a/assets/canvas-runtime.js +++ b/assets/canvas-runtime.js | |||
@@ -2320,7 +2320,8 @@ NinjaCvsRt.RuntimeSubPath = Object.create(NinjaCvsRt.RuntimeGeomObj, { | |||
2320 | if (ipColor.gradientMode){ | 2320 | if (ipColor.gradientMode){ |
2321 | var position, gradient, cs, inset; //vars used in gradient calculations | 2321 | var position, gradient, cs, inset; //vars used in gradient calculations |
2322 | inset = Math.ceil( lw ) - 0.5; | 2322 | inset = Math.ceil( lw ) - 0.5; |
2323 | 2323 | inset=0; | |
2324 | |||
2324 | if(ipColor.gradientMode === "radial") { | 2325 | if(ipColor.gradientMode === "radial") { |
2325 | var ww = w - 2*lw, hh = h - 2*lw; | 2326 | var ww = w - 2*lw, hh = h - 2*lw; |
2326 | gradient = ctx.createRadialGradient(w/2, h/2, 0, w/2, h/2, Math.max(ww, hh)/2); | 2327 | gradient = ctx.createRadialGradient(w/2, h/2, 0, w/2, h/2, Math.max(ww, hh)/2); |
@@ -2532,6 +2533,7 @@ NinjaCvsRt.RuntimeBrushStroke = Object.create(NinjaCvsRt.RuntimeGeomObj, { | |||
2532 | if (ipColor.gradientMode){ | 2533 | if (ipColor.gradientMode){ |
2533 | var position, gradient, cs, inset; //vars used in gradient calculations | 2534 | var position, gradient, cs, inset; //vars used in gradient calculations |
2534 | inset = Math.ceil( lw ) - 0.5; | 2535 | inset = Math.ceil( lw ) - 0.5; |
2536 | inset=0; | ||
2535 | 2537 | ||
2536 | if(ipColor.gradientMode === "radial") { | 2538 | if(ipColor.gradientMode === "radial") { |
2537 | var ww = w - 2*lw, hh = h - 2*lw; | 2539 | var ww = w - 2*lw, hh = h - 2*lw; |