Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-84682

Wrong DPI for rotated screens on EGLFS plugin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.11.3, 5.12.8
    • QPA: EGLFS
    • None
    • Linux/Other display system

    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

       

       

       

      Attachments

        Activity

          People

            lagocs Laszlo Agocs
            f.fuga Federico Fuga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: