close GUI and go fullscreen?

BlitzMax Forums/MaxGUI Module/close GUI and go fullscreen?

slenkar(Posted 2008) [#1]
How do switch to the game itself as a fullscreen application after getting options via a GUI window?


grable(Posted 2008) [#2]
There are several ways of doing it.

1. call Graphics when your done with the gui (if Graphics has already been called, you probably have to reload all graphics)

2. use a front-end application for settings, and rather start your "real" game when done.

3. use some API to change desktop resolution (not very portable, but quite easy on Windows)

If you are using a Canvas and maxgui for your game as well, #3 would be the best option imo.


slenkar(Posted 2008) [#3]
thanks,
I called graphics 800,600 but all images loaded AFTER turn up as NULL
and when I tried to use a canvas the same thing happened

text works though


skidracer(Posted 2008) [#4]
At the moment I think you need to use either GL or Doug's DX9 max2D driver. The DX7 driver stopped supporting fullscreen switching after Mark's "total rewrite".