Windowed fullscreen

Windowed fullscreen

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Windowed fullscreen

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Windowed fullscreen

Post 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
User avatar
CaptainPoo
Posts: 19
Joined: 28 Jul 2010, 13:46

Re: Windowed fullscreen

Post 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
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Windowed fullscreen

Post by Satirik »

last time i asked for that someone (probably jK) said ... NO
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Windowed fullscreen

Post 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
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: Windowed fullscreen

Post by Peet »

Is SDL used for creating the window and gl context?
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Re: Windowed fullscreen

Post by Neddie »

I approve of this request.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Windowed fullscreen

Post by jK »

Satirik wrote:last time i asked for that someone (probably jK) said ... NO
Yeah, always that evil jK ...
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Windowed fullscreen

Post by AF »

He admits it!!!
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Windowed fullscreen

Post by Satirik »

jK wrote:
Satirik wrote:last time i asked for that someone (probably jK) said ... NO
Yeah, always that evil jK ...
TEUFEL !!!
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: Windowed fullscreen

Post 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.'
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Windowed fullscreen

Post by Forboding Angel »

Resurrecting this feature request because I wants it muchly.
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: Windowed fullscreen

Post 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.
SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: Windowed fullscreen

Post 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.
Attachments
noframe.jpg
(84.8 KiB) Downloaded 5 times
Post Reply

Return to “Feature Requests”