JDK-5092084 : DisplayMode change is unsupported in Linux.
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1
  • CPU: x86
  • Submitted: 2004-08-25
  • Updated: 2004-08-26
  • Resolved: 2004-08-26
Related Reports
Duplicate :  
Description
Name: gm110360			Date: 08/25/2004


A DESCRIPTION OF THE REQUEST :
It has come to my attention that you cannot change the screen's DisplayMode in Linux while in fullscreen mode. I don't know if there is a reason that this feature has not been supported on Linux.

JUSTIFICATION :
Having the ability to change the dimensions of the screen allows the user to expirience a more immersive game. Changing the dimensions on a screen is also useful for many other types of media software.
Linux is a large development OS if I cannot expect the same results on my Linux system as on any other windows system then what is the use of a VM that runs much slower than native c code.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The screen will be able to be resized using the setDisplayMode() method of the GraphicsDevice class.
ACTUAL -
The GraphicsDevice object currently reports any DisplyMode changes to be unsupported.

---------- BEGIN SOURCE ----------
// Get the current graphics device
GraphicsEnvironment environment = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice device = environment.getDefaultScreenDevice();

// Create a display mode to change to.
DisplayMode displayMode = new DisplayMode(800, 600, 16, DisplayMode.REFRESH_RATE_UNKNOWN);

// This current object is a subclass of window
device.setFullScreenWindow(this);

// Set the display mode if changing the display mode is supported.
if(displayMode != null && device.isDisplayChangeSupported()){
       device.setDisplayMode(displayMode);
}
---------- END SOURCE ----------
(Incident Review ID: 296835) 
======================================================================

Comments
EVALUATION As fasr as I know it's 2D team who is responsible for fullscreen feature ###@###.### 2004-08-26 This is a duplicate of 4661156, which is being fixed for Mustang (as we speak). ###@###.### 2004-08-26
26-08-2004