Commit 77798c37 authored by Sergey Radionov's avatar Sergey Radionov Committed by Jean-Baptiste Kempf

Win32: add possibility to hide toolbar in windowed mode

In fullscreen mode toolbar is always shown.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent bf2ac249
......@@ -442,8 +442,9 @@ void VLCControlsWnd::UpdateButtons()
void VLCControlsWnd::NeedShowControls()
{
if( !IsWindowVisible( hWnd() ) ){
ShowWindow( hWnd(), SW_SHOW );
if( !IsWindowVisible( hWnd() )) {
if(WM().IsFullScreen() || (PO() && PO()->get_show_toolbar() ) )
ShowWindow( hWnd(), SW_SHOW );
}
//hide controls after 2 seconds
SetTimer(hWnd(), 1, 2*1000, NULL);
......
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