Full Screen or Windowed

BlitzPlus Forums/BlitzPlus Programming/Full Screen or Windowed

You can still use the Graphics command for windowed mode without having to use canvases etc...
Use a value of '2' for the flags:

fullscreen=False

sw=400 : sh=300 : videomode=2
If fullscreen=True Then sw=640 : sh=480 : videomode=1

Graphics sw,sh,0,videomode
SetBuffer BackBuffer()

Repeat
	Cls
	Rect Rand(sw),Rand(sh),Rand(100),Rand(100)
	Flip
Until KeyHit(1)

End