Revert DPI config

https://docs.microsoft.com/en-us/dotnet/framework/winforms/high-dpi-support-in-windows-forms guidelines do not provide expected outcomes. Previous manifest and config files provider better compatibility.
This commit is contained in:
Michael Delpach 2020-08-22 03:43:03 +08:00
parent 4e512a83d9
commit bffcabc909
2 changed files with 5 additions and 3 deletions

View File

@ -13,7 +13,7 @@
<idn enabled="All" />
<iriParsing enabled="true" />
</uri>
<System.Windows.Forms.ApplicationConfigurationSection>
<add key="DpiAwareness" value="PerMonitorV2" />
</System.Windows.Forms.ApplicationConfigurationSection>
<appSettings>
<add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />
</appSettings>
</configuration>

View File

@ -2,6 +2,8 @@
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<asmv3:application>
<asmv3:windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">True/PM</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
</asmv3:windowsSettings>
</asmv3:application>