Clear visualizer when we change skins

This commit is contained in:
Jordan Eldredge 2014-12-02 19:00:22 -08:00
parent 8dee8ee2ac
commit 5c30f00015

View file

@ -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) {