Fix highdpi coordinate scaling.