Commit cd3d0c21 authored by Gildas Bazin's avatar Gildas Bazin

* modules/video_output/directx/events.c: implemented VOUT_CLOSE.

parent a8d4796d
......@@ -919,6 +919,8 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args )
return VLC_SUCCESS;
case VOUT_CLOSE:
ShowWindow( p_vout->p_sys->hwnd, SW_HIDE );
case VOUT_REPARENT:
/* Change window style, borders and title bar */
vlc_mutex_lock( &p_vout->p_sys->lock );
......@@ -932,15 +934,12 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args )
SetParent( p_vout->p_sys->hwnd, GetDesktopWindow() );
SetWindowLong( p_vout->p_sys->hwnd, GWL_STYLE,
WS_CLIPCHILDREN | WS_OVERLAPPEDWINDOW |
WS_SIZEBOX | WS_VISIBLE );
WS_SIZEBOX | (i_query == VOUT_CLOSE ? 0 : WS_VISIBLE) );
SetWindowPos( p_vout->p_sys->hwnd, 0, point.x, point.y, 0, 0,
SWP_NOSIZE|SWP_NOZORDER|SWP_FRAMECHANGED );
return vout_vaControlDefault( p_vout, i_query, args );
case VOUT_CLOSE:
return VLC_SUCCESS;
case VOUT_SET_STAY_ON_TOP:
if( p_vout->p_sys->hparent )
return vout_ControlWindow( p_vout,
......
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