GLBasic forum

Main forum => GLBasic - en => Topic started by: MrTAToad on 2008-Sep-18

Title: OS Independant Screen Resolution
Post by: MrTAToad on 2008-Sep-18
Is there a way of getting the availiable screen resolutions in OS independant way ?
Title: Re: OS Independant Screen Resolution
Post by: Kitty Hello on 2008-Sep-18
You would have to use INLINE code to get the platform specific functions for that.
I don't know about Linux and Mac.
You can, however, just try SETSCREEN and see if GETSCREENSIZE returns the correct measurements. Bad, I know.
Title: Re: OS Independant Screen Resolution
Post by: MrTAToad on 2008-Sep-18
Thanks for that.

What I'll probably do then, for the time being anyway, is setup a list of the most command screen resolutions and allow the selection of that.

One other thing, will sprites etc. still be present in memory during a screen mode change, or will everything have to be re-loaded again ?
Title: Re: OS Independant Screen Resolution
Post by: Kitty Hello on 2008-Sep-18
should stay in memory.
Title: Re: OS Independant Screen Resolution
Post by: MrTAToad on 2008-Sep-19
Thats good!