-
Bug
-
Resolution: Fixed
-
P4
-
5.0, 6
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.
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.