Commit 0337533b authored by Gildas Bazin's avatar Gildas Bazin

* modules/video_output/directx/glwin32.c: support on-the-fly crop changes.

parent 6139440a
......@@ -302,6 +302,19 @@ static int Manage( vout_thread_t *p_vout )
vlc_mutex_unlock( &p_vout->p_sys->lock );
}
/* Check for cropping changes */
if( p_vout->fmt_out.i_x_offset != p_vout->fmt_in.i_x_offset ||
p_vout->fmt_out.i_y_offset != p_vout->fmt_in.i_y_offset ||
p_vout->fmt_out.i_visible_width != p_vout->fmt_in.i_visible_width ||
p_vout->fmt_out.i_visible_height != p_vout->fmt_in.i_visible_height )
{
p_vout->fmt_out.i_x_offset = p_vout->fmt_in.i_x_offset;
p_vout->fmt_out.i_y_offset = p_vout->fmt_in.i_y_offset;
p_vout->fmt_out.i_visible_width = p_vout->fmt_in.i_visible_width;
p_vout->fmt_out.i_visible_height = p_vout->fmt_in.i_visible_height;
E_(DirectXUpdateRects)( p_vout, VLC_TRUE );
}
/* We used to call the Win32 PeekMessage function here to read the window
* messages. But since window can stay blocked into this function for a
* long time (for example when you move your window on the screen), I
......
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