diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-14 11:47:08 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-14 11:47:08 +0200 |
| commit | 9b55cce94742b698b55db76b5139556ee454c483 (patch) | |
| tree | 8766cc47926cb621255afd06b828dfeb5972e1a3 /app/client/live | |
| parent | 9c75a4d23c901d456c65e5370a9f55c1f03944a9 (diff) | |
deploy bundle
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; |
