Support HiDPI
Some of this is quite messy
handle HiDPI in testgles2
fix typo