SFML community forums

Help => Window => Topic started by: vidjogamer on April 05, 2011, 08:51:33 pm

Title: RenderWindow fullscreen.
Post by: vidjogamer on April 05, 2011, 08:51:33 pm
Is there a way to toggle between windowed and fullscreen at run time?
Title: RenderWindow fullscreen.
Post by: Laurent on April 05, 2011, 08:57:24 pm
Call window.Create again.
Title: RenderWindow fullscreen.
Post by: vidjogamer on April 05, 2011, 08:59:02 pm
Thanks =)
Title: RenderWindow fullscreen.
Post by: vidjogamer on April 05, 2011, 09:24:45 pm
So vertical sync only works if I start the app in fullscreen mode. Then if I go to windowed it stops. When I go back to fullscreen it isnt vsynced anymore. Can I remedy this?
Title: RenderWindow fullscreen.
Post by: JAssange on April 06, 2011, 02:33:38 am
Quote from: "vidjogamer"
So vertical sync only works if I start the app in fullscreen mode. Then if I go to windowed it stops. When I go back to fullscreen it isnt vsynced anymore. Can I remedy this?

When you recreate the window all settings are lost so you'll need to reload them from whatever config file your game uses and set the value again.
Title: RenderWindow fullscreen.
Post by: vidjogamer on April 06, 2011, 01:27:16 pm
Thanks. Worked like a charm =)