[vlc-commits] win32: fixed showing toolbar when switching off fullscreen mode and toolbar is disabled .
Sergey Radionov
git at videolan.org
Mon Jan 23 19:28:37 CET 2012
npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Sun Jan 15 20:18:58 2012 +0700| [bbb07405d1b5b6519ad49304dc0eb19a32f895f9] | 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=bbb07405d1b5b6519ad49304dc0eb19a32f895f9
---
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