Window style constraints are handled differently on mobile OSes

This commit is contained in:
Jonathan De Wachter 2014-06-26 05:21:28 +02:00
parent cf52687203
commit 73008293ba

View File

@ -109,9 +109,13 @@ void Window::create(VideoMode mode, const String& title, Uint32 style, const Con
}
}
// Check validity of style
// Check validity of style according to the underlying platform
#if defined(SFML_SYSTEM_IOS) || defined(SFML_SYSTEM_ANDROID)
style& Style::Fullscreen ? style &= ~Style::Titlebar : style |= Style::Titlebar;
#else
if ((style & Style::Close) || (style & Style::Resize))
style |= Style::Titlebar;
#endif
// Recreate the window implementation
m_impl = priv::WindowImpl::create(mode, title, style, settings);