From 796c87295c0abdfed912ad2bdec878c744439f82 Mon Sep 17 00:00:00 2001 From: Jonathan De Wachter Date: Thu, 24 Jul 2014 08:35:23 +0200 Subject: [PATCH] Improved readability of ?: operator --- src/SFML/Window/Window.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SFML/Window/Window.cpp b/src/SFML/Window/Window.cpp index a3a94ed6..cd447b12 100644 --- a/src/SFML/Window/Window.cpp +++ b/src/SFML/Window/Window.cpp @@ -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 #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 if ((style & Style::Close) || (style & Style::Resize)) style |= Style::Titlebar;