diff options
Diffstat (limited to 'app/client/live')
| -rw-r--r-- | app/client/live/live.reducer.js | 1 | ||||
| -rw-r--r-- | app/client/live/whammy.js | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/client/live/live.reducer.js b/app/client/live/live.reducer.js index 1ab8e37..f1f2f4e 100644 --- a/app/client/live/live.reducer.js +++ b/app/client/live/live.reducer.js @@ -17,6 +17,7 @@ const liveInitialState = { const liveReducer = (state = liveInitialState, action) => { let results; + if (action.type !== 'SYSTEM_STDOUT') console.log(action.type, action) switch(action.type) { case types.socket.load_params: if (! action.opt || ! Object.keys(action.opt).length) { diff --git a/app/client/live/whammy.js b/app/client/live/whammy.js index 0b460cc..08a0ce9 100644 --- a/app/client/live/whammy.js +++ b/app/client/live/whammy.js @@ -496,7 +496,7 @@ module.exports = (function(){ if(frame.toDataURL){ // frame = frame.toDataURL('image/webp', this.quality); // quickly store image data so we don't block cpu. encode in compile method. - frame = frame.getContext('2d').getImageData(0, 0, frame.width, frame.height); + frame = frame.getContext('2d-lodpi').getImageData(0, 0, frame.width, frame.height); }else if(typeof frame != "string"){ throw "frame must be a a HTMLCanvasElement, a CanvasRenderingContext2D or a DataURI formatted string" } @@ -516,7 +516,7 @@ module.exports = (function(){ var frames = this.frames; var tmpCanvas = document.createElement('canvas'); - var tmpContext = tmpCanvas.getContext('2d'); + var tmpContext = tmpCanvas.getContext('2d-lodpi'); tmpCanvas.width = this.frames[0].image.width; tmpCanvas.height = this.frames[0].image.height; |
