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

Make GraphicsDevice#getDisplayMode() to return correct mode for Xinerama multi-screen

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: tbd_major
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      linux

      Description

      Currently GraphicsDevice#getDisplayMode() does not receive mode from native platform in case of Xinerama and returns the default mode form getBounds():

              Rectangle r = gc.getBounds();
              return new DisplayMode(r.width, r.height,
                                     DisplayMode.BIT_DEPTH_MULTI,
                                     DisplayMode.REFRESH_RATE_UNKNOWN);

      The corresponding native code need to be fixed to return the actual mode,

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ssadetsky Semyon Sadetsky (Inactive)
              Reporter:
              ssadetsky Semyon Sadetsky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: