Hello Guest

Current Displaay Mode

  • 3 Replies
  • 7065 Views
Current Displaay Mode
« 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

*

Offline princec

  • *****
  • 1932
    • Puppygames
Current Displaay Mode
« Reply #1 on: June 23, 2003, 12:38:11 »
Display.getWidth() / getHeight() / getFrequency() / getDepth() :)

Cas :)

Current Displaay Mode
« Reply #2 on: June 23, 2003, 16:34:50 »
So, that'll work without having set a DisplayMode?  Nice.

*

Offline princec

  • *****
  • 1932
    • Puppygames
Current Displaay Mode
« Reply #3 on: June 23, 2003, 17:23:29 »
Yes, upon classload the Display class finds out the current display settings.

Cas :)