[vlc-commits] directdraw: we also set the CAPS of the surface we create
Steve Lhomme
git at videolan.org
Thu May 26 18:35:30 CEST 2016
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu May 26 18:15:58 2016 +0200| [fe63104a9d1c439f070e7eb81e5872939663a519] | committer: Jean-Baptiste Kempf
directdraw: we also set the CAPS of the surface we create
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fe63104a9d1c439f070e7eb81e5872939663a519
---
modules/video_output/win32/directdraw.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/video_output/win32/directdraw.c b/modules/video_output/win32/directdraw.c
index 27ca233..df2cdc6 100644
--- a/modules/video_output/win32/directdraw.c
+++ b/modules/video_output/win32/directdraw.c
@@ -864,8 +864,8 @@ static int DirectXCreateSurface(vout_display_t *vd,
ddsd.ddpfPixelFormat.dwFlags = DDPF_FOURCC;
ddsd.ddpfPixelFormat.dwFourCC = fourcc;
}
+ ddsd.dwFlags |= DDSD_CAPS;
if (use_overlay) {
- ddsd.dwFlags |= DDSD_CAPS;
ddsd.ddsCaps.dwCaps = DDSCAPS_OVERLAY | DDSCAPS_VIDEOMEMORY;
ddsd.ddsCaps.dwCaps |= DDSCAPS_FLIP | DDSCAPS_FRONTBUFFER;
if (backbuffer_count > 0)
@@ -876,7 +876,6 @@ static int DirectXCreateSurface(vout_display_t *vd,
ddsd.dwBackBufferCount = backbuffer_count;
}
} else {
- ddsd.dwFlags |= DDSD_CAPS;
ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
if (use_sysmem)
ddsd.ddsCaps.dwCaps |= DDSCAPS_SYSTEMMEMORY;
More information about the vlc-commits
mailing list