Skip to content

Commit e6c2ffd

Browse files
committed
Add manifest file and remove DPIAware flag
manifest file with compatibility section to fix issue #331 remove DPI awareness flag in manifest and build settings to make the application usable with 4k monitors (short term fix for #335)
1 parent 823f919 commit e6c2ffd

3 files changed

+68
-0
lines changed

graphstudionext.v142.vcxproj

+19
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@
118118
<LargeAddressAware>true</LargeAddressAware>
119119
<DelayLoadDLLs>d3d9.dll</DelayLoadDLLs>
120120
</Link>
121+
<Manifest>
122+
<AdditionalManifestFiles>$(ProjectDir)res\graphstudionext.exe.manifest %(AdditionalManifestFiles)</AdditionalManifestFiles>
123+
<EnableDpiAwareness>false</EnableDpiAwareness>
124+
</Manifest>
121125
</ItemDefinitionGroup>
122126
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
123127
<Midl>
@@ -152,6 +156,10 @@
152156
<LargeAddressAware>true</LargeAddressAware>
153157
<DelayLoadDLLs>d3d9.dll</DelayLoadDLLs>
154158
</Link>
159+
<Manifest>
160+
<AdditionalManifestFiles>$(ProjectDir)res\graphstudionext.exe.manifest %(AdditionalManifestFiles)</AdditionalManifestFiles>
161+
<EnableDpiAwareness>false</EnableDpiAwareness>
162+
</Manifest>
155163
</ItemDefinitionGroup>
156164
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
157165
<Midl>
@@ -187,6 +195,10 @@
187195
<LargeAddressAware>true</LargeAddressAware>
188196
<DelayLoadDLLs>d3d9.dll</DelayLoadDLLs>
189197
</Link>
198+
<Manifest>
199+
<AdditionalManifestFiles>$(ProjectDir)res\graphstudionext.exe.manifest %(AdditionalManifestFiles)</AdditionalManifestFiles>
200+
<EnableDpiAwareness>false</EnableDpiAwareness>
201+
</Manifest>
190202
</ItemDefinitionGroup>
191203
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
192204
<Midl>
@@ -221,6 +233,10 @@
221233
<LargeAddressAware>true</LargeAddressAware>
222234
<DelayLoadDLLs>d3d9.dll</DelayLoadDLLs>
223235
</Link>
236+
<Manifest>
237+
<AdditionalManifestFiles>$(ProjectDir)res\graphstudionext.exe.manifest %(AdditionalManifestFiles)</AdditionalManifestFiles>
238+
<EnableDpiAwareness>false</EnableDpiAwareness>
239+
</Manifest>
224240
</ItemDefinitionGroup>
225241
<ItemGroup>
226242
<None Include="cpp.hint" />
@@ -464,6 +480,9 @@
464480
<Image Include="res\graphxml.ico" />
465481
<Image Include="res\graphxml64.ico" />
466482
</ItemGroup>
483+
<ItemGroup>
484+
<Manifest Include="res\graphstudionext.exe.manifest" />
485+
</ItemGroup>
467486
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
468487
<ImportGroup Label="ExtensionTargets">
469488
</ImportGroup>

graphstudionext.v142.vcxproj.filters

+5
Original file line numberDiff line numberDiff line change
@@ -691,4 +691,9 @@
691691
<Filter>Resource Files</Filter>
692692
</Image>
693693
</ItemGroup>
694+
<ItemGroup>
695+
<Manifest Include="res\graphstudionext.exe.manifest">
696+
<Filter>Resource Files</Filter>
697+
</Manifest>
698+
</ItemGroup>
694699
</Project>

res/graphstudionext.exe.manifest

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
3+
<description>MPC-HC</description>
4+
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
5+
<application>
6+
<!-- Windows 10 and Windows 11 -->
7+
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
8+
<!-- Windows 8.1 -->
9+
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
10+
<!-- Windows 8 -->
11+
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
12+
<!-- Windows 7 -->
13+
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
14+
<!-- Windows Vista -->
15+
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
16+
</application>
17+
</compatibility>
18+
<dependency>
19+
<dependentAssembly>
20+
<assemblyIdentity
21+
type="win32"
22+
name="Microsoft.Windows.Common-Controls"
23+
version="6.0.0.0"
24+
processorArchitecture="*"
25+
publicKeyToken="6595b64144ccf1df"
26+
language="*" />
27+
</dependentAssembly>
28+
</dependency>
29+
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
30+
<security>
31+
<requestedPrivileges>
32+
<requestedExecutionLevel
33+
level="asInvoker"
34+
uiAccess="false" />
35+
</requestedPrivileges>
36+
</security>
37+
</trustInfo>
38+
<application xmlns="urn:schemas-microsoft-com:asm.v3">
39+
<windowsSettings>
40+
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</dpiAware>
41+
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">unaware</dpiAwareness>
42+
</windowsSettings>
43+
</application>
44+
</assembly>

0 commit comments

Comments
 (0)