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

DisplayMode change is unsupported in Linux.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • client-libs
    • 2d
    • x86
    • solaris_2.5.1

      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)
      ======================================================================

            Unassigned Unassigned
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: