[vlc-commits] win32: fixed toolbar visibility checking

Sergey Radionov git at videolan.org
Mon Jan 23 19:28:37 CET 2012


npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Sun Jan 15 20:30:07 2012 +0700| [ceda322147ccc38b6e3e252fdff26332b528b3f8] | committer: Cheng Sun

win32: fixed toolbar visibility checking

Signed-off-by: Cheng Sun <chengsun9 at gmail.com>

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=ceda322147ccc38b6e3e252fdff26332b528b3f8
---

 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 dbacd29..f3bc5ec 100644
--- a/common/win32_fullscreen.cpp
+++ b/common/win32_fullscreen.cpp
@@ -461,7 +461,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 );
     }



More information about the vlc-commits mailing list