[vlc-commits] win32: fixed showing toolbar when switching off fullscreen mode and toolbar is disabled .

Sergey Radionov git at videolan.org
Sat Jan 21 23:12:16 CET 2012


npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Sun Jan 15 20:18:58 2012 +0700| [fd0d05eeb44fded157da035db3a6cdb60a280dc8] | committer: Cheng Sun

win32: fixed showing toolbar when switching off fullscreen mode and toolbar is disabled.

Signed-off-by: Cheng Sun <chengsun9 at gmail.com>

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=fd0d05eeb44fded157da035db3a6cdb60a280dc8
---

 common/win32_fullscreen.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/common/win32_fullscreen.cpp b/common/win32_fullscreen.cpp
index 24bbdf3..dbacd29 100644
--- a/common/win32_fullscreen.cpp
+++ b/common/win32_fullscreen.cpp
@@ -310,6 +310,14 @@ LRESULT VLCControlsWnd::WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
             break;
         }
         case WM_SIZE:{
+            if( GetWindowLong(hWnd(), GWL_STYLE) & WS_VISIBLE &&
+                !WM().IsFullScreen() &&
+                ( !PO() || !PO()->get_show_toolbar() ) )
+            {
+                //hide controls when they are not allowed
+                NeedHideControls();
+            }
+
             const int new_client_width = LOWORD(lParam);
             const int new_client_height = HIWORD(lParam);
 



More information about the vlc-commits mailing list