[vlc-commits] Win32: add possibility to hide toolbar in windowed mode

Sergey Radionov git at videolan.org
Fri Jan 13 12:01:06 CET 2012


npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | 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 <jb at videolan.org>

> 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);



More information about the vlc-commits mailing list