Sign in to follow this  
ms75214

SFML

Recommended Posts

[quote name='ms75214' timestamp='1329664585' post='4914516']
Is there a way to stop sfml from fading in/fading out when going in/out of fullscreen mode?
[/quote]
You're going to have to be more specific with your question. What is fading in and out when you switch to full screen?

Share this post


Link to post
Share on other sites
[quote name='Washu' timestamp='1329715948' post='4914733']
[quote name='ms75214' timestamp='1329664585' post='4914516']
Is there a way to stop sfml from fading in/fading out when going in/out of fullscreen mode?
[/quote]
You're going to have to be more specific with your question. What is fading in and out when you switch to full screen?
[/quote]

the whole screen, i think.



i think the code in question is here in SFML:

////////////////////////////////////////////////////////////
/// Set @window as the current fullscreen window
/// Change the screen resolution if needed according to @window and @fullscreenMode
////////////////////////////////////////////////////////////
- (void)setFullscreenWindow:(sfPrivWindow *)aWindow mode:(sf::VideoMode *)fullscreenMode
{
// If we have a fullscreen window and want to remove it
if (aWindow == nil && myFullscreenWrapper)
{
// Get the CoreGraphics display mode according to the desktop mode
CFDictionaryRef displayMode = CGDisplayBestModeForParameters ([sfPrivAppController primaryScreen],
myDesktopMode.BitsPerPixel,
myDesktopMode.Width,
myDesktopMode.Height,
NULL);

#if ENABLE_FADE_OPERATIONS
// Fade to black screen
[self doFadeOperation:FillScreen time:0.2f sync:true];
#endif

// Switch to the desktop display mode
CGDisplaySwitchToMode([sfPrivAppController primaryScreen], displayMode);

// Close the window
[[myFullscreenWrapper window] close];

// Show the menu bar
[NSMenu setMenuBarVisible:YES];

#if ENABLE_FADE_OPERATIONS
// Fade to normal screen
[self doFadeOperation:CleanScreen time:0.5f sync:true];
#endif

Share this post


Link to post
Share on other sites
[quote name='FLeBlanc' timestamp='1329751068' post='4914825']
Looks like you could re-compile SFML with ENABLE_FADE_OPERATIONS undefined.
[/quote]

Yeah.

Share this post


Link to post
Share on other sites
[quote name='ms75214' timestamp='1329792374' post='4915046']
[quote name='FLeBlanc' timestamp='1329751068' post='4914825']
Looks like you could re-compile SFML with ENABLE_FADE_OPERATIONS undefined.
[/quote]

Yeah.
[/quote]

Actually, no. I'd set it to 0, not undefine it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this