SFML
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 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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement