[vlc-devel] [PATCH] win32: fixed showing toolbar when switching off fullscreen mode and toolbar is disabled.
Sergey Radionov
rsatom at gmail.com
Sun Jan 15 14:23:35 CET 2012
---
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 6bb8575..b1d63df 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);
--
1.7.7.1.msysgit.0
More information about the vlc-devel
mailing list