Skip to content

Commit

Permalink
[#22 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Desautels committed Apr 17, 2011
1 parent 0c39e9d commit 4aa9ac3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/slave.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
onmessage = function (event) {
var kernel, kernelSize, kernelSum, pix = event.data, eps = pix.eps*255;
if(pix.sig){
if(+pix.sig){
buildKernel();
pix.a = blur(pix.a, pix.height, pix.width);
pix.b = blur(pix.b, pix.height, pix.width);
Expand Down
4 changes: 2 additions & 2 deletions resources/tests.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"blurRadius": "0",
"blurRadius": "2",
"testSuite": [{
"dependancyURL": "resources/test_1.js",
"test": [{
Expand Down Expand Up @@ -51,7 +51,7 @@
}
}]
},{
"blurRadius": "2",
"blurRadius": "0",
"test": [{
"name": "Known Pass 1",
"firstCanvas": {
Expand Down
2 changes: 1 addition & 1 deletion sundae.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ var sundae = {};
pix.bId = b.id;
pix.cId = c.id;
pix.eps = _epsilon;
pix.sig = radius ? radius : _sigma;
pix.sig = test.blurRadius ? test.blurRadius : radius ? radius : _sigma;
pix.height = c.height;
pix.width = c.width;
_w.setTimeout(
Expand Down

0 comments on commit 4aa9ac3

Please sign in to comment.