Commit 8f81a4a2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

msw: small code factor

parent e260f543
...@@ -757,18 +757,13 @@ static int Win32VoutCreateWindow( event_thread_t *p_event ) ...@@ -757,18 +757,13 @@ static int Win32VoutCreateWindow( event_thread_t *p_event )
rect_window.right = rect_window.left + p_event->width; rect_window.right = rect_window.left + p_event->width;
rect_window.bottom = rect_window.top + p_event->height; rect_window.bottom = rect_window.top + p_event->height;
if( var_GetBool( vd, "video-deco" ) ) i_style = var_GetBool( vd, "video-deco" )
{
/* Open with window decoration */ /* Open with window decoration */
AdjustWindowRect( &rect_window, WS_OVERLAPPEDWINDOW|WS_SIZEBOX, 0 ); ? WS_OVERLAPPEDWINDOW|WS_SIZEBOX
i_style = WS_OVERLAPPEDWINDOW|WS_SIZEBOX|WS_VISIBLE|WS_CLIPCHILDREN;
}
else
{
/* No window decoration */ /* No window decoration */
AdjustWindowRect( &rect_window, WS_POPUP, 0 ); : WS_POPUP;
i_style = WS_POPUP|WS_VISIBLE|WS_CLIPCHILDREN; AdjustWindowRect( &rect_window, i_style, 0 );
} i_style |= WS_VISIBLE|WS_CLIPCHILDREN;
if( p_event->hparent ) if( p_event->hparent )
{ {
......
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