High DPI support

More fixes.