Getting the desktop resolution?

BlitzMax Forums/BlitzMax Programming/Getting the desktop resolution?

dan_upright(Posted 2014) [#1]
So I've got a resolution changing menu in my game and it's a bloody mess, to put it nicely. GraphicsModes() is great and all but my pc is capable of so many different resolutions at different depths and frequencies that even just the 32bit, 800x600+ ones is a huge list that still has duplicates in it (possibly because I have two monitors). I figure all you really need these days is windowed, maximised borderless window and fullscreen at the desktop resolution.

So my first question is, assuming I don't want to import maxgui, how do I get the desktop resolution? I looked at chaos.desktopext but it doesn't support linux.

Secondly, is a maximised borderless window even possible on linux? I'm told it's actually the preferred way of doing fullscreen on a mac nowadays but I'm clueless on the penguin side of things.


BlitzSupport(Posted 2014) [#2]
Think I can handle the first question at least...

Print DesktopWidth ()
Print DesktopHeight ()
Print DesktopDepth ()
Print DesktopHertz ()



dan_upright(Posted 2014) [#3]
I thought they were maxgui commands, I live and learn. Thanks mate.