JDK-6357897 : GD.getDisplayMode() works incorrectly on Multi-Mon when primary/sec devices are swapped at runtime
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-12-01
  • Updated: 2010-04-02
  • Resolved: 2005-12-02
Related Reports
Duplicate :  
Description
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.