Improved readability of ?: operator
This commit is contained in:
parent
f491e94297
commit
796c87295c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user