[vlc-devel] [PATCH 10/13] common/win32_fullscreen: added hiding toolbar possibility in windowed mode
Sergey Radionov
rsatom at gmail.com
Fri Jan 13 04:54:34 CET 2012
in fullscreen mode toolbar is always shown.
---
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);
--
1.7.7.1.msysgit.0
More information about the vlc-devel
mailing list