fix windows size on customized Windows desktop dpi scaling
Merge pull request #427 from xia-sava/feature/fix-device-ratio

#426 fix windows size on customized Windows desktop dpi scaling