How to check if app is in window mode or not?

Blitz3D Forums/Blitz3D Programming/How to check if app is in window mode or not?

Mr.Waterlily(Posted 2007) [#1]
Hi,

I´m simply trying to figure out a way to check if my application is in window mode or in fullscreen.
In the code archives I found a little code snippet that does some mouse sets and gets to test for this which I suppose works, but I would prefer a more real solution.
Does anyone know of a way to do this? Perhaps with some added decls?


GfK(Posted 2007) [#2]
The easiest way is to have 'Global Windowed = True' etc before you set your graphics mode, then:
If Windowed
  'Do windowed stuff
Else
  '...or not
EndIf

you can read the contents of your Windowed var from an INI file or whatever at startup. It doesn't have to be hard-coded.


Mr.Waterlily(Posted 2007) [#3]
Thanks for the reply.
And what you suggest is what I already do.
I just thought it would be nicer to have some systemcheck function for this.
Any ideas on that?