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

GraphicsDevice.getDisplayMode() returns incorrect wid/height on sol- multi-mon

    XMLWordPrintable

Details

    • 2d
    • 1.4
    • beta
    • x86
    • linux_redhat_9.0
    • Verified

    Description

      GraphicsDevice.getDisplayMode() is supposed to return the current display mode of the graphics device that involves width, height, bit depth and refresh rate. But when running this on a multi-mon setup on SolSparc9 / Linux, this method always returns the width and height of the default screen regardless of the graphics device for which this method was invoked. Even when invoked with gd2, it returns the dimensions of gd1.

      This is noticed on all releases since JDK1.4, on Solaris as well as Linux. On Solaris, the multimon is configured with independent screens whereas on Linux, it is configured using Xinerama. On win32, correct screen dimensions are returned.

      I have attached a sample test which would list out the current display mode of all the devices available on the system, alongwith the def GraphicsConfig and all other display modes. If the default display modes are same for both the devices, the bug is reproduced. I have given the PlatformInfo in the comments section.

      Attachments

        Activity

          People

            campbell Christopher Campbell (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: