Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8120438

EGLFB: Incorrect DPI reported on platforms with unknown screen size

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:

      Description

      We calculate DPI based on detected display with in millimeters compared with the number of pixels along the width of the screen.

      Some screens report their width as "2^31 millimeters" (-1 if read as a signed int, but it is delivered as an unsigned value.) This isn't supposed to happen, but clearly is happening. We try to detect this case and default to 96dpi, but due to a coding error in fbdevScreen.c fail to detect it and report 25 dpi. We get to 25dpi because it is 1 pixel-per-millimeter.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dblaukop Daniel Blaukopf (Inactive)
                Reporter:
                dblaukop Daniel Blaukopf (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: