minibrowser: implement HiDPI support (#30343)

This commit is contained in:
Delan Azabani 2023-09-14 21:24:38 +08:00 committed by GitHub
parent d22d97f8c8
commit bb1a6c23c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 130 additions and 67 deletions

View file

@ -17,7 +17,11 @@
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>true</dpiAware>
<!-- enable per-monitor dpi awareness where possible -->
<!-- https://learn.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process -->
<!-- https://stackoverflow.com/q/23551112 -->
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>