[vlc-commits] Direct2D/3D does not need to clamp to display size.

Laurent Aimar git at videolan.org
Thu Apr 28 23:35:08 CEST 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Apr 11 21:15:16 2011 +0200| [fe1629bf8424df334184b1331c7482595c3b5c2d] | committer: Laurent Aimar

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fe1629bf8424df334184b1331c7482595c3b5c2d
---

 modules/video_output/msw/common.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/msw/common.c b/modules/video_output/msw/common.c
index 414b93d..cb55e8f 100644
--- a/modules/video_output/msw/common.c
+++ b/modules/video_output/msw/common.c
@@ -403,10 +403,9 @@ void UpdateRects(vout_display_t *vd,
 
 #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
-     * display size so we need to do it otherwise it will fail
-     * It is also needed for d3d to avoid exceding our surface size */
+     * display size so we need to do it otherwise it will fail */
 
     /* Clip the destination window */
     if (!IntersectRect(&rect_dest_clipped, &rect_dest,



More information about the vlc-commits mailing list