Add HiDPI detection
Merge pull request #557 from Andre-487/hi-dpi-detect

Add HiDPI detection