LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: psiegel on June 23, 2003, 12:10:47

Title: Current Displaay Mode
Post by: psiegel on June 23, 2003, 12:10:47
Is there a way to query the current display mode without having set it?  My app currently allows both full screen and windowed mode, and creates an 800x600 window.  I'd like to disallow windowed mode if the user's current display resolution is 800x600 or less, as the addition of the window dressings make the total size of the windowed mode window greater than 800x600.  I can't seem to find anything in the API that will let me do this though.  I'm hoping I'm just overlooking something, and this doesn't end up as a feature request.

Paul
Title: Current Displaay Mode
Post by: princec on June 23, 2003, 12:38:11
Display.getWidth() / getHeight() / getFrequency() / getDepth() :)

Cas :)
Title: Current Displaay Mode
Post by: psiegel on June 23, 2003, 16:34:50
So, that'll work without having set a DisplayMode?  Nice.
Title: Current Displaay Mode
Post by: princec on June 23, 2003, 17:23:29
Yes, upon classload the Display class finds out the current display settings.

Cas :)