some minor adjustments

* add scaleByDPI and use it in touchmenu