resolution

BlitzMax Forums/BlitzMax Beginners Area/resolution

blicek(Posted 2014) [#1]
Hello

I have a problem with changing the resolution in BB, IE.: I have a project I run it through for example. I want key pressure resolution has changed, for example: from 1280 x 1024 to 800 x 600.
As possible using, for example:

Goto or
Gosub?

advance for your reply


xlsior(Posted 2014) [#2]
Goto or
Gosub?


Neither, both goto and gosub are horribly outdated legacy basic commands, you'd want to stick it in a function and call that instead.

To change resolution, you'd have to do an EndGraphics(), and then use Graphics() to create the new resolution graphics window -- but be aware that you'll have to reload all your images because they'll be flushed out of memory when you terminate the existing graphics window.


blicek(Posted 2014) [#3]
OK ! THANKS