[vlc-commits] DirectDraw: revert part of e827a9404e415145dfc348a50632fe0b3338a01c

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


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jan 22 18:50:01 2015 +0100| [f88a7ac1bd110a2dc5e6f455179cb1a232159ba6] | committer: Jean-Baptiste Kempf

DirectDraw: revert part of e827a9404e415145dfc348a50632fe0b3338a01c

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

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

diff --git a/modules/video_output/msw/directdraw.c b/modules/video_output/msw/directdraw.c
index db06565..cee7d47 100644
--- a/modules/video_output/msw/directdraw.c
+++ b/modules/video_output/msw/directdraw.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