Loading

Win DPI

  1. diff --git a/projects/openttd_vs100.vcxproj b/projects/openttd_vs100.vcxproj
  2. index 59e087e..a71f235 100644
  3. --- a/projects/openttd_vs100.vcxproj
  4. +++ b/projects/openttd_vs100.vcxproj
  5. @@ -145,6 +145,9 @@
  6.        <TargetMachine>MachineX86</TargetMachine>
  7.        <EnableCOMDATFolding>true</EnableCOMDATFolding>
  8.      </Link>
  9. +    <Manifest>
  10. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  11. +    </Manifest>
  12.    </ItemDefinitionGroup>
  13.    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
  14.      <Midl>
  15. @@ -188,6 +191,9 @@
  16.        </DataExecutionPrevention>
  17.        <TargetMachine>MachineX86</TargetMachine>
  18.      </Link>
  19. +    <Manifest>
  20. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  21. +    </Manifest>
  22.    </ItemDefinitionGroup>
  23.    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
  24.      <Midl>
  25. @@ -244,6 +250,9 @@
  26.        <TargetMachine>MachineX64</TargetMachine>
  27.        <EnableCOMDATFolding>true</EnableCOMDATFolding>
  28.      </Link>
  29. +    <Manifest>
  30. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  31. +    </Manifest>
  32.    </ItemDefinitionGroup>
  33.    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
  34.      <Midl>
  35. @@ -289,6 +298,9 @@
  36.        <StackCommitSize>1048576</StackCommitSize>
  37.        <TargetMachine>MachineX64</TargetMachine>
  38.      </Link>
  39. +    <Manifest>
  40. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  41. +    </Manifest>
  42.    </ItemDefinitionGroup>
  43.    <ItemGroup>
  44.      <ClCompile Include="..\src\airport.cpp" />
  45. diff --git a/projects/openttd_vs100.vcxproj.in b/projects/openttd_vs100.vcxproj.in
  46. index c6b1645..fd3072f 100644
  47. --- a/projects/openttd_vs100.vcxproj.in
  48. +++ b/projects/openttd_vs100.vcxproj.in
  49. @@ -145,6 +145,9 @@
  50.        <TargetMachine>MachineX86</TargetMachine>
  51.        <EnableCOMDATFolding>true</EnableCOMDATFolding>
  52.      </Link>
  53. +    <Manifest>
  54. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  55. +    </Manifest>
  56.    </ItemDefinitionGroup>
  57.    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
  58.      <Midl>
  59. @@ -188,6 +191,9 @@
  60.        </DataExecutionPrevention>
  61.        <TargetMachine>MachineX86</TargetMachine>
  62.      </Link>
  63. +    <Manifest>
  64. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  65. +    </Manifest>
  66.    </ItemDefinitionGroup>
  67.    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
  68.      <Midl>
  69. @@ -244,6 +250,9 @@
  70.        <TargetMachine>MachineX64</TargetMachine>
  71.        <EnableCOMDATFolding>true</EnableCOMDATFolding>
  72.      </Link>
  73. +    <Manifest>
  74. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  75. +    </Manifest>
  76.    </ItemDefinitionGroup>
  77.    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
  78.      <Midl>
  79. @@ -289,6 +298,9 @@
  80.        <StackCommitSize>1048576</StackCommitSize>
  81.        <TargetMachine>MachineX64</TargetMachine>
  82.      </Link>
  83. +    <Manifest>
  84. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  85. +    </Manifest>
  86.    </ItemDefinitionGroup>
  87.    <ItemGroup>
  88.  !!FILES!!
  89. diff --git a/projects/openttd_vs140.vcxproj b/projects/openttd_vs140.vcxproj
  90. index 8d8b980..eb84941 100644
  91. --- a/projects/openttd_vs140.vcxproj
  92. +++ b/projects/openttd_vs140.vcxproj
  93. @@ -151,6 +151,9 @@
  94.        <EnableCOMDATFolding>true</EnableCOMDATFolding>
  95.        <MinimumRequiredVersion>5.01</MinimumRequiredVersion>
  96.      </Link>
  97. +    <Manifest>
  98. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  99. +    </Manifest>
  100.    </ItemDefinitionGroup>
  101.    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
  102.      <Midl>
  103. @@ -198,6 +201,9 @@
  104.        <TargetMachine>MachineX86</TargetMachine>
  105.        <MinimumRequiredVersion>5.01</MinimumRequiredVersion>
  106.      </Link>
  107. +    <Manifest>
  108. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  109. +    </Manifest>
  110.    </ItemDefinitionGroup>
  111.    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
  112.      <Midl>
  113. @@ -257,6 +263,9 @@
  114.        <EnableCOMDATFolding>true</EnableCOMDATFolding>
  115.        <MinimumRequiredVersion>5.02</MinimumRequiredVersion>
  116.      </Link>
  117. +    <Manifest>
  118. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  119. +    </Manifest>
  120.    </ItemDefinitionGroup>
  121.    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
  122.      <Midl>
  123. @@ -306,6 +315,9 @@
  124.        <TargetMachine>MachineX64</TargetMachine>
  125.        <MinimumRequiredVersion>5.02</MinimumRequiredVersion>
  126.      </Link>
  127. +    <Manifest>
  128. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  129. +    </Manifest>
  130.    </ItemDefinitionGroup>
  131.    <ItemGroup>
  132.      <ClCompile Include="..\src\airport.cpp" />
  133. diff --git a/projects/openttd_vs140.vcxproj.in b/projects/openttd_vs140.vcxproj.in
  134. index 76b16b5..9d87328 100644
  135. --- a/projects/openttd_vs140.vcxproj.in
  136. +++ b/projects/openttd_vs140.vcxproj.in
  137. @@ -151,6 +151,9 @@
  138.        <EnableCOMDATFolding>true</EnableCOMDATFolding>
  139.        <MinimumRequiredVersion>5.01</MinimumRequiredVersion>
  140.      </Link>
  141. +    <Manifest>
  142. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  143. +    </Manifest>
  144.    </ItemDefinitionGroup>
  145.    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
  146.      <Midl>
  147. @@ -198,6 +201,9 @@
  148.        <TargetMachine>MachineX86</TargetMachine>
  149.        <MinimumRequiredVersion>5.01</MinimumRequiredVersion>
  150.      </Link>
  151. +    <Manifest>
  152. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  153. +    </Manifest>
  154.    </ItemDefinitionGroup>
  155.    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
  156.      <Midl>
  157. @@ -257,6 +263,9 @@
  158.        <EnableCOMDATFolding>true</EnableCOMDATFolding>
  159.        <MinimumRequiredVersion>5.02</MinimumRequiredVersion>
  160.      </Link>
  161. +    <Manifest>
  162. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  163. +    </Manifest>
  164.    </ItemDefinitionGroup>
  165.    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
  166.      <Midl>
  167. @@ -306,6 +315,9 @@
  168.        <TargetMachine>MachineX64</TargetMachine>
  169.        <MinimumRequiredVersion>5.02</MinimumRequiredVersion>
  170.      </Link>
  171. +    <Manifest>
  172. +      <EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>
  173. +    </Manifest>
  174.    </ItemDefinitionGroup>
  175.    <ItemGroup>
  176.  !!FILES!!

Comments