From 873a10caa2b6c55f9c571bd848aa04a4600bae4b Mon Sep 17 00:00:00 2001 From: Patrick Brosset Date: Sun, 9 Sep 2012 01:35:29 +0200 Subject: [PATCH] Fix the duplication in the overlay when grid toggl When the grid was toggled, the overlay would actually draw the main drawing frame instead of just redrawing itself with transparent pixels. This was due to the drawingcontroller passing the ref to the same frame object when initialiwing both renders. By the way, the overlay should probably be treated a bit differently as redrawing all its transprent pixels in that case is useless. --- js/controller/DrawingController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/controller/DrawingController.js b/js/controller/DrawingController.js index a9a32e3e..63dccdc6 100644 --- a/js/controller/DrawingController.js +++ b/js/controller/DrawingController.js @@ -35,7 +35,7 @@ "canvas-overlay"); this.renderer.init(this.frame); - this.overlayRenderer.init(this.frame); + this.overlayRenderer.init(this.overlayFrame); // State of drawing controller: this.isClicked = false;