[vlc-commits] DirectDraw: revert part of 929c88bd9e6c28749c2dbffead07bd17a8adc501

Jean-Baptiste Kempf git at videolan.org
Thu Jan 22 18:52:10 CET 2015


vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jan 22 18:51:43 2015 +0100| [c6131be819e89ec3e021740c702841b28b03734a] | committer: Jean-Baptiste Kempf

DirectDraw: revert part of 929c88bd9e6c28749c2dbffead07bd17a8adc501

Should close #13706

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

 modules/video_output/msw/directx.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/msw/directx.c b/modules/video_output/msw/directx.c
index 6ce1eab..afaa8f8 100644
--- a/modules/video_output/msw/directx.c
+++ b/modules/video_output/msw/directx.c
@@ -851,8 +851,8 @@ static int DirectXCreateSurface(vout_display_t *vd,
     ddsd.dwSize   = sizeof(ddsd);
     ddsd.ddpfPixelFormat.dwSize = sizeof(ddsd.ddpfPixelFormat);
     ddsd.dwFlags  = DDSD_HEIGHT | DDSD_WIDTH;
-    ddsd.dwWidth  = fmt->i_width;
-    ddsd.dwHeight = fmt->i_height;
+    ddsd.dwWidth  = fmt->i_visible_width;
+    ddsd.dwHeight = fmt->i_visible_height;
     if (fourcc) {
         ddsd.dwFlags |= DDSD_PIXELFORMAT;
         ddsd.ddpfPixelFormat.dwFlags = DDPF_FOURCC;



More information about the vlc-commits mailing list