]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/win32/win32_window.cpp
Skins2: Cosmetic.
[vlc] / modules / gui / skins2 / win32 / win32_window.cpp
index f0fff071d64f5c11ac6ed42dbfded88607522307..7102f96b1bbc31af2fbf5f23254caa1a90591ed2 100644 (file)
@@ -193,18 +193,8 @@ void Win32Window::setOpacity( uint8_t value ) const
 
 void Win32Window::toggleOnTop( bool onTop ) const
 {
-    if( onTop )
-    {
-        // Set the window on top
-        SetWindowPos( m_hWnd, HWND_TOPMOST, 0, 0, 0, 0,
-                      SWP_NOSIZE | SWP_NOMOVE );
-    }
-    else
-    {
-        // Set the window not on top
-        SetWindowPos( m_hWnd, HWND_NOTOPMOST, 0, 0, 0, 0,
-                      SWP_NOSIZE | SWP_NOMOVE );
-    }
+    SetWindowPos( m_hWnd, onTop ? HWND_TOPMOST : HWND_NOTOPMOST,
+                  0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE );
 }