From b9b9626cbd5bae0cead9fa92ad1a4459cde3867a Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 4 Mar 2018 23:07:46 +0100 Subject: [PATCH] forgot to revert something --- js/modules/ArDetect.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/modules/ArDetect.js b/js/modules/ArDetect.js index d622b55..cfc3415 100644 --- a/js/modules/ArDetect.js +++ b/js/modules/ArDetect.js @@ -338,8 +338,7 @@ var _ard_vdraw_but_for_reals = function() { } // we get the entire frame so there's less references for garbage collection to catch - var imagestuff = GlobalVars.canvas.context.getImageData(0,0,GlobalVars.canvas.width,GlobalVars.canvas.height); - var image = imagestuff.data; + var image = GlobalVars.canvas.context.getImageData(0,0,GlobalVars.canvas.width,GlobalVars.canvas.height).data; // fast test to see if aspect ratio is correct. If we detect anything darker than blackLevel, we modify // blackLevel to the new lowest value