[vlc-commits] win32: fixed toolbar visibility checking
Sergey Radionov
git at videolan.org
Sat Jan 21 23:12:17 CET 2012
npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Sun Jan 15 20:30:07 2012 +0700| [df10707462d53e93c9da05c781a59ea682521bfc] | 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=df10707462d53e93c9da05c781a59ea682521bfc
---
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