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

Win32GD.isDisplayChangeSupported() should not refer to screen 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.4.0
    • client-libs
    • None
    • 2d
    • b51
    • generic
    • generic

      While fixing 5008045, it was noticed that
      Win32GraphicsDevice.isDisplayChangeSupported() explicitly checks for screen 0.
      This may be a bad idea for systems that set their primary display to something
      other than the screen known as "0". We should instead check to see whether
      the current device is the default for the local graphics environment. (5008045
      includes a new helper method called isDefaultDevice() which can help in this
      case.)

      Note that we haven't verified that this is actually a bug (maybe the 0 check is
      there for good reason), but I'm filing this anyway so that someone can
      investigate this more thoroughly.

            tdv Dmitri Trembovetski (Inactive)
            campbell Christopher Campbell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: