Auto detect resolution

BlitzMax Forums/BlitzMax Programming/Auto detect resolution

EpicElrod(Posted 2015) [#1]
I want to commercially sell my game. How do I make it auto-detect resolution? I don't like messing with menus and stuff when I'm playing, and other don't either. If you can share some code (Blitz3D, btw) that would be awesome. Thanks!


AdamStrange(Posted 2015) [#2]
I use:
DeskTopWidth()
DeskTopHeight()


degac(Posted 2015) [#3]
I think you mean GadgetWidth(Desktop()) and GadgetWidth(Desktop())


http://www.blitzmax.com/bmdocs/command.php?name=desktop&ref=goto


AdamStrange(Posted 2015) [#4]
nope, but that's another way. EpicElrod didn't mention anything about using gadgets

So DeskTopWidth() etc will do just fine :)


Brucey(Posted 2015) [#5]
EpicElrod didn't mention anything about using gadgets

That's because he's epically using Blitz3D :-)


markcw(Posted 2015) [#6]
wrong forum btw.

Anyway, this is probably what your after. BlitzPlus has this built in with Desktop().


degac(Posted 2015) [#7]
Ahhh... I just discovered that DeskTopWidth() e DeskTopHeight() exist even on Bmax! I always used GraphicsWidth()... probably I'm using only MaxGUI... or I'm gettin too older and my memory is getting worst :|