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

Wrong context origin coordinates when using EGL and HiDPI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jfx17
    • None
    • javafx
    • None

      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.

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

              Created:
              Updated:
              Resolved: