How to toggle Fullscreen/Windowed

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

And another bug for me.
If you click the close window button in window mode your app will still run in memory (check taskmanager)! BMX1.14.

Any fix for this?