Auto detect resolution
BlitzMax Forums/BlitzMax Programming/Auto detect resolution| 
 | ||
| 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! | 
| 
 | ||
| I use: DeskTopWidth() DeskTopHeight() | 
| 
 | ||
| I think you mean GadgetWidth(Desktop()) and GadgetWidth(Desktop()) http://www.blitzmax.com/bmdocs/command.php?name=desktop&ref=goto | 
| 
 | ||
| nope, but that's another way. EpicElrod didn't mention anything about using  gadgets So DeskTopWidth() etc will do just fine :) | 
| 
 | ||
|  EpicElrod didn't mention anything about using gadgets  That's because he's epically using Blitz3D :-) | 
| 
 | ||
| wrong forum btw. Anyway, this is probably what your after. BlitzPlus has this built in with Desktop(). | 
| 
 | ||
| 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 :| |