title: Delphi application not high DPI (although the manifest looks good)
body: <p>I'm having trouble to get my Delphi (10.1 Berlin Update 2) application behave correctly in high DPI on Windows 10, April 2018 update. The whole application is by default blurry (scaled by the OS), but if I change the DPI-settings (properties of the exe) to 'application' it behaves correctly. The manifest file of my executable looks like:</p>
  
  <pre><code>sigcheck -m exectuable.exe
  
  Sigcheck v2.60 - File version and signature viewer
  Copyright (C) 2004-2017 Mark Russinovich
  Sysinternals - www.sysinternals.com
  
  C:\...\executable.exe:
          Verified:       Unsigned
          Link date:      12:05 13-8-2018
          Publisher:      n/a
          Company:        
          Description:    
          Product:        
          Prod version:   
          File version:   
          MachineType:    32-bit
          Manifest:
  &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"&gt;
    &lt;application xmlns="urn:schemas-microsoft-com:asm.v3"&gt;
      &lt;windowsSettings&gt;
          &lt;dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings"&gt;PerMonitorV2&lt;/dpiAwareness&gt;
          &lt;dpiAware&gt;true&lt;/dpiAware&gt;
      &lt;/windowsSettings&gt;
    &lt;/application&gt;
    &lt;dependency&gt;
      &lt;dependentAssembly&gt;
        &lt;assemblyIdentity
          type="win32"
          name="Microsoft.Windows.Common-Controls"
          version="6.0.0.0"
          publicKeyToken="6595b64144ccf1df"
          language="*"
          processorArchitecture="*"/&gt;
      &lt;/dependentAssembly&gt;
    &lt;/dependency&gt;
    &lt;trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"&gt;
      &lt;security&gt;
        &lt;requestedPrivileges&gt;
          &lt;requestedExecutionLevel
            level="asInvoker"
            uiAccess="false"
          /&gt;
          &lt;/requestedPrivileges&gt;
      &lt;/security&gt;
    &lt;/trustInfo&gt;
    &lt;compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"&gt;
          &lt;application&gt;
                  &lt;!--The ID below indicates app support for Windows Vista --&gt;
                  &lt;supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/&gt;
                  &lt;!--The ID below indicates app support for Windows 7 --&gt;
                  &lt;supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/&gt;
                  &lt;!--The ID below indicates app support for Windows 8 --&gt;
                  &lt;supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/&gt;
                  &lt;!--The ID below indicates app support for Windows 8.1 --&gt;
                  &lt;supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/&gt;
                  &lt;!--The ID below indicates app support for Windows 10 --&gt;
                  &lt;supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/&gt;
          &lt;/application&gt;
    &lt;/compatibility&gt;
  &lt;/assembly&gt;
  </code></pre>
  
  <p>This manifest is used in the DPR with <code>{$R 'app.res' 'app.rc'}</code> and the resource file contains only one line:</p>
  
  <pre><code>1 24 .\HighDPI.manifest
  </code></pre>
  
  <p>I don't want to do anything in runtime, but let the manifest determine the DPI scaling. Can anybody provide me with a solution to prevent Windows scaling my application in high DPI?</p>