Fix build warnings: unused variable and obsolete dpiAware settings.

This commit is contained in:
flyoutsea 2023-11-25 21:48:33 +08:00
parent babb548c22
commit 55e09ed062
3 changed files with 1 additions and 3 deletions

View file

@ -20,7 +20,6 @@ namespace v2rayN.Handler
// <proxy-server><CR-LF> // <proxy-server><CR-LF>
// <bypass-list><CR-LF> // <bypass-list><CR-LF>
// <pac-url> // <pac-url>
private static SysproxyConfig? _userSettings = null;
private enum RET_ERRORS : int private enum RET_ERRORS : int
{ {

View file

@ -13,6 +13,7 @@ namespace v2rayUpgrade
{ {
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetHighDpiMode(HighDpiMode.SystemAware); Application.SetHighDpiMode(HighDpiMode.SystemAware);
Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm(args)); Application.Run(new MainForm(args));
} }

View file

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