Commit 6016460e authored by Gildas Bazin's avatar Gildas Bazin

* modules/video_output/directx/directx.c: support on-the-fly cropping.

parent 8a47c573
...@@ -539,6 +539,19 @@ static int Manage( vout_thread_t *p_vout ) ...@@ -539,6 +539,19 @@ static int Manage( vout_thread_t *p_vout )
} }
} }
/* 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 /* 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 * 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 * 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