diff options
author | michi_cc <michi_cc@openttd.org> | 2017-03-13 20:21:40 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2017-03-13 20:21:40 +0000 |
commit | ac735cfaaceae505a4dc766c2732d81b3fc83610 (patch) | |
tree | 1d8ed3d77f74b53db4f62ac755f1f10e77849fb6 /projects | |
parent | 11b9fbbe666e8e46a293b3536c5979445fe0dc89 (diff) | |
download | openttd-ac735cfaaceae505a4dc766c2732d81b3fc83610.tar.xz |
(svn r27790) -Fix [FS#6366]: [Win32] Mark OpenTTD as DPI-aware to avoid OS window scaling that breaks mouse input.
Diffstat (limited to 'projects')
-rw-r--r-- | projects/openttd_vs100.vcxproj | 12 | ||||
-rw-r--r-- | projects/openttd_vs100.vcxproj.in | 12 | ||||
-rw-r--r-- | projects/openttd_vs140.vcxproj | 12 | ||||
-rw-r--r-- | projects/openttd_vs140.vcxproj.in | 12 |
4 files changed, 48 insertions, 0 deletions
diff --git a/projects/openttd_vs100.vcxproj b/projects/openttd_vs100.vcxproj index 59e087ee7..a71f23536 100644 --- a/projects/openttd_vs100.vcxproj +++ b/projects/openttd_vs100.vcxproj @@ -145,6 +145,9 @@ <TargetMachine>MachineX86</TargetMachine> <EnableCOMDATFolding>true</EnableCOMDATFolding> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <Midl> @@ -188,6 +191,9 @@ </DataExecutionPrevention> <TargetMachine>MachineX86</TargetMachine> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <Midl> @@ -244,6 +250,9 @@ <TargetMachine>MachineX64</TargetMachine> <EnableCOMDATFolding>true</EnableCOMDATFolding> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <Midl> @@ -289,6 +298,9 @@ <StackCommitSize>1048576</StackCommitSize> <TargetMachine>MachineX64</TargetMachine> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemGroup> <ClCompile Include="..\src\airport.cpp" /> diff --git a/projects/openttd_vs100.vcxproj.in b/projects/openttd_vs100.vcxproj.in index c6b16455a..fd3072f07 100644 --- a/projects/openttd_vs100.vcxproj.in +++ b/projects/openttd_vs100.vcxproj.in @@ -145,6 +145,9 @@ <TargetMachine>MachineX86</TargetMachine> <EnableCOMDATFolding>true</EnableCOMDATFolding> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <Midl> @@ -188,6 +191,9 @@ </DataExecutionPrevention> <TargetMachine>MachineX86</TargetMachine> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <Midl> @@ -244,6 +250,9 @@ <TargetMachine>MachineX64</TargetMachine> <EnableCOMDATFolding>true</EnableCOMDATFolding> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <Midl> @@ -289,6 +298,9 @@ <StackCommitSize>1048576</StackCommitSize> <TargetMachine>MachineX64</TargetMachine> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemGroup> !!FILES!! diff --git a/projects/openttd_vs140.vcxproj b/projects/openttd_vs140.vcxproj index 8d8b98064..eb8494167 100644 --- a/projects/openttd_vs140.vcxproj +++ b/projects/openttd_vs140.vcxproj @@ -151,6 +151,9 @@ <EnableCOMDATFolding>true</EnableCOMDATFolding> <MinimumRequiredVersion>5.01</MinimumRequiredVersion> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <Midl> @@ -198,6 +201,9 @@ <TargetMachine>MachineX86</TargetMachine> <MinimumRequiredVersion>5.01</MinimumRequiredVersion> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <Midl> @@ -257,6 +263,9 @@ <EnableCOMDATFolding>true</EnableCOMDATFolding> <MinimumRequiredVersion>5.02</MinimumRequiredVersion> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <Midl> @@ -306,6 +315,9 @@ <TargetMachine>MachineX64</TargetMachine> <MinimumRequiredVersion>5.02</MinimumRequiredVersion> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemGroup> <ClCompile Include="..\src\airport.cpp" /> diff --git a/projects/openttd_vs140.vcxproj.in b/projects/openttd_vs140.vcxproj.in index 76b16b510..9d873283f 100644 --- a/projects/openttd_vs140.vcxproj.in +++ b/projects/openttd_vs140.vcxproj.in @@ -151,6 +151,9 @@ <EnableCOMDATFolding>true</EnableCOMDATFolding> <MinimumRequiredVersion>5.01</MinimumRequiredVersion> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <Midl> @@ -198,6 +201,9 @@ <TargetMachine>MachineX86</TargetMachine> <MinimumRequiredVersion>5.01</MinimumRequiredVersion> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <Midl> @@ -257,6 +263,9 @@ <EnableCOMDATFolding>true</EnableCOMDATFolding> <MinimumRequiredVersion>5.02</MinimumRequiredVersion> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <Midl> @@ -306,6 +315,9 @@ <TargetMachine>MachineX64</TargetMachine> <MinimumRequiredVersion>5.02</MinimumRequiredVersion> </Link> + <Manifest> + <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness> + </Manifest> </ItemDefinitionGroup> <ItemGroup> !!FILES!! |