make touch/mouse events more independent of gfx-mode
only do crisp scaling when there's a context
fix example7
build