diff --git a/js/piskel.js b/js/piskel.js index 2aee3ebb..01316a6a 100644 --- a/js/piskel.js +++ b/js/piskel.js @@ -83,7 +83,7 @@ $.namespace("pskl"); }); $.subscribe('FRAMESHEET_RESET', function(evt, frameId) { - piskel.redraw(); + piskel.render(); }); var drawingLoop = new pskl.rendering.DrawingLoop(); drawingLoop.addCallback(this.render, this); diff --git a/js/rendering/FrameRenderer.js b/js/rendering/FrameRenderer.js index 5761f85f..20d42ad4 100644 --- a/js/rendering/FrameRenderer.js +++ b/js/rendering/FrameRenderer.js @@ -84,11 +84,6 @@ if(color != Constants.TRANSPARENT_COLOR) { context.fillStyle = color; context.fillRect(this.getFramePos_(col), this.getFramePos_(row), this.dpi, this.dpi); - } - - if(color != Constants.SELECTION_TRANSPARENT_COLOR) { - // TODO(vincz): Found a better design to update the palette, it's called too frequently. - $.publish(Events.COLOR_USED, [color]); } };