   doSetFixedSize true
   
 E('flag-origin-mark').addEventListener 'change', (e)->
-  application.getObserver().isDrawingHomePtr = E('flag-origin-mark').checked
-  redraw()
+  application.setDrawingHomePtr E('flag-origin-mark').checked
   
 E('btn-mode-edit').addEventListener 'click', (e) -> doSetPanMode false
 E('btn-mode-pan').addEventListener 'click', (e) -> doSetPanMode true

      @cells.put unity, 1
    
    @observer = new @ObserverClass @tessellation, @appendRewrite, minVisibleSize, config.getViewBase(), config.getViewOffset()
    @observer.isDrawingHomePtr = E('flag-origin-mark').checked
    @observer.onFinish = -> redraw()

    @navigator = new Navigator this

updateCanvasSize()
updateMemoryButtons()
updatePlayButtons()
redrawLoop()

#application.saveDialog.show()
