From 5c30f00015885affc54c751cc91273dc0743651e Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Tue, 2 Dec 2014 19:00:22 -0800 Subject: [PATCH] Clear visualizer when we change skins --- visualizer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/visualizer.js b/visualizer.js index 97dbb474..32a89615 100644 --- a/visualizer.js +++ b/visualizer.js @@ -44,6 +44,10 @@ Visualizer = { var y = 32 - (i*2); this.barCanvasCtx.fillRect(0,y,6,2); } + // If we are paused when the skin changes, we will keep the vis colors + // until we paint again. For now we can just clear the current frame so + // we don't end up with a clashing visual. + this.clear(); }, setStyle: function(style) {