[vlc-devel] [PATCH] win32: fixed toolbar visibility checking

Sergey Radionov rsatom at gmail.com
Sun Jan 15 14:33:06 CET 2012


---
 common/win32_fullscreen.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common/win32_fullscreen.cpp b/common/win32_fullscreen.cpp
index 6bb8575..caca6af 100644
--- a/common/win32_fullscreen.cpp
+++ b/common/win32_fullscreen.cpp
@@ -453,7 +453,7 @@ void VLCControlsWnd::UpdateButtons()
 
 void VLCControlsWnd::NeedShowControls()
 {
-    if( !IsWindowVisible( hWnd() )) {
+    if( !(GetWindowLong(hWnd(), GWL_STYLE) & WS_VISIBLE) ) {
         if(WM().IsFullScreen() || (PO() && PO()->get_show_toolbar() ) )
             ShowWindow( hWnd(), SW_SHOW );
     }
-- 
1.7.7.1.msysgit.0




More information about the vlc-devel mailing list