GLBasic forum

Main forum => GLBasic - en => Topic started by: tictac on 2008-Jul-13

Title: How to change screen resolution and mode via code?
Post by: tictac on 2008-Jul-13
Hello,

I cannot find a function to change screen resolution via code, how can I do it?
(for example, I want to let the user change game resolution).

Thank you (even without restarting the game!)
Title: Re: How to change screen resolution and mode via code?
Post by: Sebastian on 2008-Jul-13
SetScreen is it I think.
Title: Re: How to change screen resolution and mode via code?
Post by: acristo on 2008-Jul-13
Thats right

SETSCREEN 1280,800,1

the number after the resolution is fullscreen(1) or windowed(0)
Title: Re: How to change screen resolution and mode via code?
Post by: tictac on 2008-Jul-13
Thank you, I will check it!