Fixed an issue with non-standard DPIs