Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Switching in and out of windowed mode

Author
Message
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 6th Dec 2011 09:25
Hi all,

I know that switching between windowed mode and fullscreen mode uses SET WINDOW ON and SET WINDOW OFF, however, that switches between windowed mode and Fullscreen mode. Is there a way to switch between windowed mode and FullDesktop mode through code?

Malevolence: The Sword of Ahkranox
www.msoa-game.com
www.facebook.com/malevolencegame
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Dec 2011 12:46
I have an example on my computer at home I used a long time ago. You'll have to wait for about 6 hours though I'll re-post tonight.

TheComet

CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 6th Dec 2011 13:58
With the time difference that'll be ready for me in the morning! Perfect! Thanks!

Malevolence: The Sword of Ahkranox
www.msoa-game.com
www.facebook.com/malevolencegame
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Dec 2011 14:49
It's something like:


TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 6th Dec 2011 17:39 Edited at: 6th Dec 2011 17:39
Here you go:



Make sure to pass the KeepResolution when using it a second time, otherwise it flushes the memory and all of your textures and images will be gone. The first time you set up the screen you are allowed to pass ChangeResolution. What I noticed is that text gets a lot smaller when you switch from fullscreen to window... This might be interesting to try out as well:



TheComet

CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 7th Dec 2011 01:28
You're a legend, Comet! Got me out of the weeds once again! Thank you!

Malevolence: The Sword of Ahkranox
www.msoa-game.com
www.facebook.com/malevolencegame

Login to post a reply

Server time is: 2026-07-12 00:06:59
Your offset time is: 2026-07-12 00:06:59