Improved readability of ?: operator

This commit is contained in:
Jonathan De Wachter 2014-07-24 08:35:23 +02:00
parent f491e94297
commit 796c87295c

View File

@ -111,7 +111,10 @@ void Window::create(VideoMode mode, const String& title, Uint32 style, const Con
// Check validity of style according to the underlying platform // Check validity of style according to the underlying platform
#if defined(SFML_SYSTEM_IOS) || defined(SFML_SYSTEM_ANDROID) #if defined(SFML_SYSTEM_IOS) || defined(SFML_SYSTEM_ANDROID)
style& Style::Fullscreen ? style &= ~Style::Titlebar : style |= Style::Titlebar; if (style & Style::Fullscreen)
style &= ~Style::Titlebar;
else
style |= Style::Titlebar;
#else #else
if ((style & Style::Close) || (style & Style::Resize)) if ((style & Style::Close) || (style & Style::Resize))
style |= Style::Titlebar; style |= Style::Titlebar;