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

EGLFB: Incorrect DPI reported on platforms with unknown screen size

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • javafx

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: