Commit bbb07405 authored by Sergey Radionov's avatar Sergey Radionov Committed by Cheng Sun

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

Signed-off-by: 's avatarCheng Sun <chengsun9@gmail.com>
parent 5f94d097
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment