Current Displaay Mode

Started by psiegel, June 23, 2003, 12:10:47

Previous topic - Next topic

psiegel

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

princec

Display.getWidth() / getHeight() / getFrequency() / getDepth() :)

Cas :)

psiegel

So, that'll work without having set a DisplayMode?  Nice.

princec

Yes, upon classload the Display class finds out the current display settings.

Cas :)