gml now uses a gfxbuffer to buffer drawing

may still be some glitches with this, but at a glance savedlg and
gmltest both appear to work properly.