Skip to content

Commit 107d259

Browse files
authored
Fix: DPI scaling for multiple monitors (#2941)
* Fix: Dpi Scaling * Fix: DPI scaling * Docs: #2941
1 parent 6823097 commit 107d259

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

Source/NETworkManager/NETworkManager.csproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
23
<PropertyGroup>
34
<OutputType>WinExe</OutputType>
45
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
@@ -8,15 +9,16 @@
89
<!-- Publish a single file can't be used when accessing assembly file path
910
<PublishSingleFile>true</PublishSingleFile>
1011
<PublishReadyToRun>true</PublishReadyToRun>
11-
-->
12+
-->
1213
<CsWinRTWindowsMetadata>sdk</CsWinRTWindowsMetadata>
1314
<RootNamespace>NETworkManager</RootNamespace>
1415
<AssemblyName>NETworkManager</AssemblyName>
1516
<UseWPF>true</UseWPF>
16-
<UseWindowsForms>true</UseWindowsForms>
17+
<UseWindowsForms>true</UseWindowsForms>
1718
<StartupObject>NETworkManager.App</StartupObject>
18-
<ApplicationIcon>NETworkManager.ico</ApplicationIcon>
19-
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
19+
<ApplicationManifest>app.manifest</ApplicationManifest>
20+
<ApplicationIcon>NETworkManager.ico</ApplicationIcon>
21+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
2022
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
2123
<Authors>BornToBeRoot</Authors>
2224
<PackageProjectUrl>https://github.com/BornToBeRoot/NETworkManager</PackageProjectUrl>

Source/NETworkManager/app.manifest

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
1717
</application>
1818
</compatibility>
19-
19+
2020
<application xmlns="urn:schemas-microsoft-com:asm.v3">
2121
<windowsSettings>
22-
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitor</dpiAwareness>
23-
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
22+
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
23+
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
2424
</windowsSettings>
2525
</application>
26+
2627
</assembly>

Website/docs/changelog/next-release.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Release date: **xx.xx.2024**
3333

3434
## Bugfixes
3535

36+
- Fixed an issue with DPI scaling where the application was blurry if a second monitor had a different dpi setting than the main monitor. [#2941](https://github.com/BornToBeRoot/NETworkManager/pull/2941)
3637
- Changed the Welcome dialog from `MahApps.Metro.Controls.Dialogs` to `MahApps.Metro.SimpleChildWindow`, so the main window can be dragged and resized on the first start. [#2914](https://github.com/BornToBeRoot/NETworkManager/pull/2914)
3738

3839
- **WiFi**

0 commit comments

Comments
 (0)