Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.11.3, 5.12.8
-
None
Description
On a device with 90-degrees rotated screen using QT_QPA_EGLFS_ROTATION, the calculated DPI is wrong.
Current Screen: ""
Size: 600 x 1024 pixels
Size: 154 x 85 mm
Logical Resolution: 168.894 x 179.294 dpi
Physical Resolution: 98.961 x 305.995 dpi
Device pixel Ration: 1
QT_QPA_EGLFS_ROTATION=90
Correct DPI should be 179.294 x 168.894.
The attached patch fixes the issue:
Current Screen: ""
Size: 600 x 1024 pixels
Size: 85 x 154 mm
Logical Resolution: 179.294 x 168.894 dpi
Physical Resolution: 179.294 x 168.894 dpi
Device pixel Ration: 1