[vlc-commits] win32: fixed toolbar visibility checking
Sergey Radionov
git at videolan.org
Sat Jan 21 23:06:33 CET 2012
npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Sun Jan 15 20:30:07 2012 +0700| [d9431c51ed802365e3043b1141087bd817845803] | committer: Cheng Sun
win32: fixed toolbar visibility checking
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=d9431c51ed802365e3043b1141087bd817845803
---
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