-
Bug
-
Resolution: Fixed
-
P3
-
6
-
mustang
-
x86
-
windows_xp
-
Verified
I am calling setDisplayMode() on a graphics device that is currently in fullscreen mode, with a display mode that has an unknown refresh rate (REFRESH_RATE_UNKNOWN). Say 640, 480, 32, 0. When I do it without turning on the opengl flag, it works fine and the default refresh rate of 60hz is taken automatically. But on the same platform, for the same build, when I turn the opengl flag on and execute the same application, an IllegalArgumentException is thrown saying invalid display mode.
The API doc for DisplayMode specifies that the refresh rate can be unknown. This is reproducible since tiger-beta2-b46 on WinXP with NVIDIA GEFORCE4 MX 440.
I have attached a sample test. Execute the sample test with opengl flag. If a frame appears and an exception is thrown in the console, the bug is reproduced.
Here is the platform info:
Intel 32bit
Single Processor
Processor Speed: 2394 MHz
Operating System:
Windows XP (version 5.1 Service Pack 1 (Build 2600))
DirectX version: DirectX 8.1 or greater
DirectX display devices:
Device 0:
Resolution (width x height x depth): 1024 x 768 x 32
Video memory (Total, Free): 130875 KB, 130792 KB
Device driver nv4_disp.dll version 6.14.10.5672
GDI display devices:
Primary: Name = \\.\DISPLAY1, Description = NVIDIA GeForce4 MX 440
The API doc for DisplayMode specifies that the refresh rate can be unknown. This is reproducible since tiger-beta2-b46 on WinXP with NVIDIA GEFORCE4 MX 440.
I have attached a sample test. Execute the sample test with opengl flag. If a frame appears and an exception is thrown in the console, the bug is reproduced.
Here is the platform info:
Intel 32bit
Single Processor
Processor Speed: 2394 MHz
Operating System:
Windows XP (version 5.1 Service Pack 1 (Build 2600))
DirectX version: DirectX 8.1 or greater
DirectX display devices:
Device 0:
Resolution (width x height x depth): 1024 x 768 x 32
Video memory (Total, Free): 130875 KB, 130792 KB
Device driver nv4_disp.dll version 6.14.10.5672
GDI display devices:
Primary: Name = \\.\DISPLAY1, Description = NVIDIA GeForce4 MX 440
- relates to
-
JDK-5094347 clarify GraphicsDevice.setDisplayMode() spec regarding BIT_DEPTH_MULTI
-
- Resolved
-