diff options
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r-- | win/CS/HandBrakeWPF/app.config | 4 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/app.manifest | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/app.config b/win/CS/HandBrakeWPF/app.config index 5ea845f32..4fee91d0a 100644 --- a/win/CS/HandBrakeWPF/app.config +++ b/win/CS/HandBrakeWPF/app.config @@ -3,4 +3,8 @@ <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/>
</startup>
+ <runtime>
+ <!-- Required for "Per monitor DPI scaling" on .NET < 4.6.2 -->
+ <AppContextSwitchOverrides value="Switch.System.Windows.DoNotScaleForDpiChanges=false"/>
+ </runtime>
</configuration>
diff --git a/win/CS/HandBrakeWPF/app.manifest b/win/CS/HandBrakeWPF/app.manifest index dba44e974..389e81f24 100644 --- a/win/CS/HandBrakeWPF/app.manifest +++ b/win/CS/HandBrakeWPF/app.manifest @@ -60,4 +60,14 @@ </dependentAssembly> </dependency> + <application xmlns="urn:schemas-microsoft-com:asm.v3"> + <windowsSettings> + <!-- The combination of below two tags have the following effect : + 1) Per-Monitor for >= Windows 10 Anniversary Update + 2) System < Windows 10 Anniversary Update --> + <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings"> PerMonitor</dpiAwareness> + <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware> + </windowsSettings> + </application> + </assembly> |