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

Wrong context origin coordinates when using EGL and HiDPI

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: openjfx17
    • Component/s: javafx
    • Labels:
      None

      Description

      When using EGL, com.sun.prism.es2.ES2SwapChain calculates the context origin coordinates (contextX, contentY), based on the screen coordinates, mixing up values with different scales: for instance screenHeight is in logical pixels while ouputHeight is in physical pixels.

      While this works for regular embedded devices with no HiDPI (scale is 1.0), that is not the case on Android, which has HiDPI support and output scale is greater than 1.0.

      Since the context coordinates are in physical pixels, all magnitudes should be scaled accordingly.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jpereda Jose Pereda
              Reporter:
              jpereda Jose Pereda
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: