npapi-vlc | branch: master | Sergey Radionov <[email protected]> | Tue Jan 10 12:06:43 2012 +0700| [77798c371a75268f512b12d1afc09696e784ad8e] | committer: Jean-Baptiste Kempf
Win32: add possibility to hide toolbar in windowed mode In fullscreen mode toolbar is always shown. Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=77798c371a75268f512b12d1afc09696e784ad8e --- common/win32_fullscreen.cpp | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/win32_fullscreen.cpp b/common/win32_fullscreen.cpp index 75bd412..8243095 100644 --- a/common/win32_fullscreen.cpp +++ b/common/win32_fullscreen.cpp @@ -442,8 +442,9 @@ void VLCControlsWnd::UpdateButtons() void VLCControlsWnd::NeedShowControls() { - if( !IsWindowVisible( hWnd() ) ){ - ShowWindow( hWnd(), SW_SHOW ); + if( !IsWindowVisible( hWnd() )) { + if(WM().IsFullScreen() || (PO() && PO()->get_show_toolbar() ) ) + ShowWindow( hWnd(), SW_SHOW ); } //hide controls after 2 seconds SetTimer(hWnd(), 1, 2*1000, NULL); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
