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

Wrong DPI for rotated screens on EGLFS plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.3, 5.12.8
    • Fix Version/s: None
    • Component/s: QPA: EGLFS
    • Labels:
      None
    • Platform/s:
      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes