summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2017-03-13 21:56:38 +0000
committermichi_cc <michi_cc@openttd.org>2017-03-13 21:56:38 +0000
commitcb2e84454f97fd6dba80af477b563136bc94c5f3 (patch)
tree920bc3b11c90f38968889e95d091ec6dfa75adfc
parentac735cfaaceae505a4dc766c2732d81b3fc83610 (diff)
downloadopenttd-cb2e84454f97fd6dba80af477b563136bc94c5f3.tar.xz
(svn r27791) -Fix (r27790) [FS#6366]: Try #2. Now also for Visual Studio 2010.
-rw-r--r--projects/dpi_aware.manifest7
-rw-r--r--projects/openttd_vs100.vcxproj8
-rw-r--r--projects/openttd_vs100.vcxproj.in8
3 files changed, 15 insertions, 8 deletions
diff --git a/projects/dpi_aware.manifest b/projects/dpi_aware.manifest
new file mode 100644
index 000000000..6f0416159
--- /dev/null
+++ b/projects/dpi_aware.manifest
@@ -0,0 +1,7 @@
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" >
+ <application xmlns="urn:schemas-microsoft-com:asm.v3">
+ <windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
+ <dpiAware>True/PM</dpiAware>
+ </windowsSettings>
+ </application>
+</assembly>
diff --git a/projects/openttd_vs100.vcxproj b/projects/openttd_vs100.vcxproj
index a71f23536..9c3b10786 100644
--- a/projects/openttd_vs100.vcxproj
+++ b/projects/openttd_vs100.vcxproj
@@ -146,7 +146,7 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
</Link>
<Manifest>
- <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
+ <AdditionalManifestFiles>dpi_aware.manifest</AdditionalManifestFiles>
</Manifest>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
@@ -192,7 +192,7 @@
<TargetMachine>MachineX86</TargetMachine>
</Link>
<Manifest>
- <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
+ <AdditionalManifestFiles>dpi_aware.manifest</AdditionalManifestFiles>
</Manifest>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@@ -251,7 +251,7 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
</Link>
<Manifest>
- <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
+ <AdditionalManifestFiles>dpi_aware.manifest</AdditionalManifestFiles>
</Manifest>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@@ -299,7 +299,7 @@
<TargetMachine>MachineX64</TargetMachine>
</Link>
<Manifest>
- <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
+ <AdditionalManifestFiles>dpi_aware.manifest</AdditionalManifestFiles>
</Manifest>
</ItemDefinitionGroup>
<ItemGroup>
diff --git a/projects/openttd_vs100.vcxproj.in b/projects/openttd_vs100.vcxproj.in
index fd3072f07..c8e71c423 100644
--- a/projects/openttd_vs100.vcxproj.in
+++ b/projects/openttd_vs100.vcxproj.in
@@ -146,7 +146,7 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
</Link>
<Manifest>
- <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
+ <AdditionalManifestFiles>dpi_aware.manifest</AdditionalManifestFiles>
</Manifest>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
@@ -192,7 +192,7 @@
<TargetMachine>MachineX86</TargetMachine>
</Link>
<Manifest>
- <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
+ <AdditionalManifestFiles>dpi_aware.manifest</AdditionalManifestFiles>
</Manifest>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@@ -251,7 +251,7 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
</Link>
<Manifest>
- <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
+ <AdditionalManifestFiles>dpi_aware.manifest</AdditionalManifestFiles>
</Manifest>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@@ -299,7 +299,7 @@
<TargetMachine>MachineX64</TargetMachine>
</Link>
<Manifest>
- <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
+ <AdditionalManifestFiles>dpi_aware.manifest</AdditionalManifestFiles>
</Manifest>
</ItemDefinitionGroup>
<ItemGroup>