Page 1 of 1

Windowed fullscreen

Posted: 29 Jul 2010, 14:08
by Licho
Recent games are frequently enabling "windowed fullscreen" mode - basically game creates window without borders thats on top and takes full screen.

Such option has benefits of both windowed and fullscreen mode - the game takes up whole screen and task switching is instant.

Re: Windowed fullscreen

Posted: 29 Jul 2010, 16:32
by AF
I approve greatly of this, it would mean I can run Visual studio debugger and make breakpoints in my AI in fullscreen mode, whereas at the moment, you have to run it in windowed or close spring to catch a glimpse of the output

Re: Windowed fullscreen

Posted: 29 Jul 2010, 18:21
by CaptainPoo
I use this setting on most games I play

Spring has minor problems with alt tabbing for me like the camera zoom gets messed up - but for some people it causes their game to crash etc

So this would be a good thing to have

Re: Windowed fullscreen

Posted: 29 Jul 2010, 18:22
by Satirik
last time i asked for that someone (probably jK) said ... NO

Re: Windowed fullscreen

Posted: 30 Jul 2010, 01:28
by Tobi
Someone on Windows will have to do this since decent window managers already include the option without requiring application support for it :-P

Re: Windowed fullscreen

Posted: 30 Jul 2010, 01:39
by Peet
Is SDL used for creating the window and gl context?

Re: Windowed fullscreen

Posted: 30 Jul 2010, 18:25
by Neddie
I approve of this request.

Re: Windowed fullscreen

Posted: 30 Jul 2010, 18:26
by jK
Satirik wrote:last time i asked for that someone (probably jK) said ... NO
Yeah, always that evil jK ...

Re: Windowed fullscreen

Posted: 31 Jul 2010, 17:00
by AF
He admits it!!!

Re: Windowed fullscreen

Posted: 31 Jul 2010, 17:48
by Satirik
jK wrote:
Satirik wrote:last time i asked for that someone (probably jK) said ... NO
Yeah, always that evil jK ...
TEUFEL !!!

Re: Windowed fullscreen

Posted: 31 Jul 2010, 23:48
by MidKnight
+1 impulse weight
Yeah, this is a good idea. I use this mode with any game that supports it. right now I'm running spring in a maximized window on my primary monitor. Borderless would be much nicer. :-)

PS: This setting is also called 'Borderless window.'

Re: Windowed fullscreen

Posted: 11 Mar 2011, 18:14
by Forboding Angel
Resurrecting this feature request because I wants it muchly.

Re: Windowed fullscreen

Posted: 11 Mar 2011, 18:42
by SinbadEV
Internet says SDL supports "borderless" or "frameless" windows in Windows and Linux... it also seems pretty simple... are there any people out there capable of compiling and willing to try?

apparently you just set the fourth parameter of SDL_SetVideoMode() to SDL_NOFRAME for you screen surface.

Re: Windowed fullscreen

Posted: 11 Mar 2011, 23:32
by SirMaverick

Code: Select all

diff --git a/rts/System/SpringApp.cpp b/rts/System/SpringApp.cpp
index d128ce5..d6ef0e8 100644
--- a/rts/System/SpringApp.cpp
+++ b/rts/System/SpringApp.cpp
@@ -376,7 +376,7 @@ bool SpringApp::SetSDLVideoMode()
        int sdlflags = SDL_OPENGL | SDL_RESIZABLE;
 
        //! w/o SDL_NOFRAME, kde's windowmanager still creates a border and force a `window`-resize causing a lot of trouble
-       sdlflags |= globalRendering->fullScreen ? SDL_FULLSCREEN | SDL_NOFRAME : 0;
+       sdlflags |= globalRendering->fullScreen ? SDL_FULLSCREEN | SDL_NOFRAME : SDL_NOFRAME;
 
        SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
        SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
Should be made an option.