[vlc-devel] [PATCH 1/4] directdraw: we also set the CAPS of the surface we create
Steve Lhomme
robux4 at videolabs.io
Thu May 26 18:15:58 CEST 2016
---
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;
--
2.8.1
More information about the vlc-devel
mailing list