Switching between fullscreen and windowed mode
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Switching between fullscreen and windowed mode
Using love.graphics.toggleFullscreen() can get me from windowed to fullscreen mode, but not the other way around. When I'm in fullscreen, I'm stuck in fullscreen. Is it possible to make a fullscreen game switch back to windowed mode?
- nevon
- Commander of the Circuloids
- Posts: 938
- Joined: Thu Feb 14, 2008 8:25 pm
- Location: Stockholm, Sweden
- Contact:
Re: Switching between fullscreen and windowed mode
Yup, same here.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Switching between fullscreen and windowed mode
toggleFullscreen should* work, but if it really doesn't you can always do it the hard-core way:
* In theory.
Code: Select all
--love.graphics.setMode( width, height, fullscreen, vsync, fsaa )
love.graphics.setMode(love.graphics.getWidth(), love.graphics.getHeight(), false )
Help us help you: attach a .love.
Re: Switching between fullscreen and windowed mode
[quote="Robin"]but if it really doesn't you can always do it the hard-core way:
This is how I ended up doing it.
A bug report is in order, perhaps?
Code: Select all
--love.graphics.setMode( width, height, fullscreen, vsync, fsaa )
love.graphics.setMode(love.graphics.getWidth(), love.graphics.getHeight(), false )
A bug report is in order, perhaps?
Re: Switching between fullscreen and windowed mode
Interesting. It should be noted that love.graphics.toggleFullscreen() returns a boolean - true if LÖVE thinks it succeeded, false if it doesn't. I'm assuming that in this situation it returns false?
Re: Switching between fullscreen and windowed mode
I didn't actually check the return value. I should probably do that sometime.
I assume love.graphics.toggleFullscreen() switches in and out of fullscreen mode properly for most other people then?
I assume love.graphics.toggleFullscreen() switches in and out of fullscreen mode properly for most other people then?
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Switching between fullscreen and windowed mode
I also have this problem. Glad to see it's not just me.
Re: Switching between fullscreen and windowed mode
I guess, if it helps, I'll mention I'm running Mac OS X 10.6.3 with an ATI Radeon HD 4850 graphics card.
Setting the mode directly like Robin suggested works perfectly as I said, so what is toggleFullscreen doing differently exactly?
Setting the mode directly like Robin suggested works perfectly as I said, so what is toggleFullscreen doing differently exactly?
Re: Switching between fullscreen and windowed mode
Happens with me to. lol
Who is online
Users browsing this forum: Bing [Bot] and 5 guests