juliandescottes/piskel — pull request #62 by captainbrosset (2012-09-08 23:40:49+00:00)
Title: Fix grid duplicate frame

Fixes a bug whereby after drawing a simple shape, activating the grid, and then moving the frame around, the shape would actually be duplicated.

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.