How to toggle Fullscreen/Windowed

BlitzMax Forums/BlitzMax Programming/How to toggle Fullscreen/Windowed

There must be a way to deal with this ...
What is it exactly you want to "deal" with? This code is adapted from deps' code above:
Strict
'SetGraphicsDriver GLMax2DDriver()
Print "memory usage: " + GCMemAlloced()
For Local i = 0 To 25
Print i
Graphics 640,480,0
Print "memory usage: " + GCMemAlloced()
EndGraphics()

Graphics 800,640,0
Print "memory usage: " + GCMemAlloced()
EndGraphics()

Graphics 1024,768,0
Print "memory usage: " + GCMemAlloced()
EndGraphics()

Graphics 320,240,0
Print "memory usage: " + GCMemAlloced()
EndGraphics()

Print "memory usage: " + GCMemAlloced()
Next
As you can see, memory will be reclaimed when nessecary.