Commit fe1629bf authored by Laurent Aimar's avatar Laurent Aimar

Direct2D/3D does not need to clamp to display size.

parent b282e00c
...@@ -403,10 +403,9 @@ void UpdateRects(vout_display_t *vd, ...@@ -403,10 +403,9 @@ void UpdateRects(vout_display_t *vd,
#endif #endif
#if defined(MODULE_NAME_IS_directx) || defined(MODULE_NAME_IS_direct3d) || defined(MODULE_NAME_IS_direct2d) #if defined(MODULE_NAME_IS_directx)
/* UpdateOverlay directdraw function doesn't automatically clip to the /* UpdateOverlay directdraw function doesn't automatically clip to the
* display size so we need to do it otherwise it will fail * display size so we need to do it otherwise it will fail */
* It is also needed for d3d to avoid exceding our surface size */
/* Clip the destination window */ /* Clip the destination window */
if (!IntersectRect(&rect_dest_clipped, &rect_dest, if (!IntersectRect(&rect_dest_clipped, &rect_dest,
......
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