Jump to content
  • Advertisement
Sign in to follow this  
ms75214

SFML

This topic is 2491 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement

Is there a way to stop sfml from fading in/fading out when going in/out of fullscreen mode?

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='ms75214' timestamp='1329664585' post='4914516']
Is there a way to stop sfml from fading in/fading out when going in/out of fullscreen mode?

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.


Yeah.
[/quote]

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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!