[vlc-commits] direct3d9: Don't round uneven sizes down.

Hugo Beauzée-Luyssen git at videolan.org
Thu Apr 6 16:38:06 CEST 2017


vlc/vlc-2.2 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Apr  6 10:52:46 2017 +0200| [066ec045ebdf0b9c98810088e00277bbdffa131d] | committer: Hugo Beauzée-Luyssen

direct3d9: Don't round uneven sizes down.

Manually cherry-picked from: fc0eb78ad163882fd9eef089c714ccf27fa3971a

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 modules/video_output/msw/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/msw/common.c b/modules/video_output/msw/common.c
index ec4a3eb..219b816 100644
--- a/modules/video_output/msw/common.c
+++ b/modules/video_output/msw/common.c
@@ -426,7 +426,7 @@ void UpdateRects(vout_display_t *vd,
     /* Apply overlay hardware constraints */
     if (sys->use_overlay)
         AlignRect(&rect_src_clipped, sys->i_align_src_boundary, sys->i_align_src_size);
-#elif defined(MODULE_NAME_IS_direct3d) || defined(MODULE_NAME_IS_direct2d)
+#elif defined(MODULE_NAME_IS_direct2d)
     /* Needed at least with YUV content */
     rect_src_clipped.left &= ~1;
     rect_src_clipped.right &= ~1;



More information about the vlc-commits mailing list