[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:06:32 CET 2012
npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Sun Jan 15 20:18:58 2012 +0700| [525119e9e57b0131b48ca0318c67208bbabedfd4] | committer: Cheng Sun
win32: fixed showing toolbar when switching off fullscreen mode and toolbar is disabled.
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=525119e9e57b0131b48ca0318c67208bbabedfd4
---
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