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

GD.getDisplayMode() works incorrectly on Multi-Mon when primary/sec devices are swapped at runtime

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6
    • client-libs
    • 2d
    • x86
    • windows_xp

      I am running an application which prints the current display mode for all the screen devices available. I am running this on a MultiMon config installed with WinXP, Nvidia GeForce4 FX5900. When the application is running, I am opening the display settings (by right clicking on the desktop) -> settings. I am swapping the primary and secondary devices and changing the resolution/refresh rate of each of the screens. Clicking 'Apply'. After this, I am calling GD.getDisplayMode() with respect to each of the devices available. I am surprised to see same display mode being returned by both the devices.

      This is reproducible on WinXP with ddraw on all Mustang builds. I could not test this on Tiger since the desktop freezes on this system when running this application. I tested it with noddraw and this bug is not reproducible. This happens only when swapping the primary and secondary monitors. Just changing the resolution/ref rate alone works fine.

      Run the attached test on a WinXP-MultiMonitor-Virtual Screen configuration. Click on 'GetDisplayMode'. Check the display mode. Open Display panel -> settings and swap the primary/sec monitors. Change the resolution and ref rate for each of them. Click Apply. Click on 'GetDisplayMode'. If the same display mode is printed twice, the bug is reproduced.

            tdv Dmitri Trembovetski (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: