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.
This commit is contained in:
Patrick Brosset 2012-09-09 01:35:29 +02:00
parent d799221c24
commit 809fc8b688

View File

@ -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;