Why does the screen return a lower resolution than my tablet for Windows 8 is installed?

I have a Windows 8 tablet with a resolution of Full HD with a resolution of 1920x1080 pixels.

But when I use the Delphi Screen object to get Screen.Width and Screen.Height , it will return the resolution of 1280x720 working on this Windows 8 tablet.

What is the problem? On the Windows side (tablet) or on the Delphi side? I use Delphi 7 to XE2 with equal results. This is more of a tablet problem than a general problem with Windows 8, since there is no such behavior on my Windows 8.1 desktop computer.


Conclusion

I just wanted to emphasize the cause of my problem, as it is hidden in the comments.
By default, Windows 8 on my tablet uses 150% DPI. 1080px - 150% of 720px. Thus, 720px can be used by applications. Reducing the percentage of DPI to 100% leads to the expected resolution of 1080 pixels.

+6
source share
2 answers

This may be a DPI related issue. Aero can handle high DPI situations in two ways:

  • Tell the application that DPI is larger than standard 96 and let it scale.
  • It’s a lie to the application that DPI is usually 96, and scale it using some image scaling algorithm (creates blur)

Perhaps in the second situation, Aero lies not only about DPI, but also about screen resolution.


If the second scenario is your case, then DO NOT DISABLE scaling. Just run the DPI application: http://www.rw-designer.com/DPI-aware - general information http://www.micro-isv.asia/2010/09/high-dpi-support-in-windows-vista -and-7 / - delphi

+4
source

The definition on Full HD is controversial.

The industry has adopted the term Full HD because a consumer marketing term means that the device is a safe purchase because it can display at least one of the available HD resolutions.

The device supports 16: 9 aspect ratio, which is the international standard for HD.

The two most famous full HD resolutions are:

  • 1280 x 720 (720p)
  • 1920 x 1080 (1080p)

The fact that your device says that it is full HD simply means that displaying the device at a minimum supports 720p resolution, up to 1080p.

Given that this is a tablet, it should become obvious that its native resolution is 720p HD. The fact that you can force 1080p just means exactly that will display as full HD , which is capable of displaying 1080p. Doesn't mean 1080p is native resolution.

To answer your question, Delphi does not work Windows.

+2
source

Source: https://habr.com/ru/post/951102/


All Articles