[vlc-commits] directdraw: DDSCAPS_FRONTBUFFER is not a CAPS we can request on CreateSurface()
Steve Lhomme
git at videolan.org
Thu May 26 18:37:42 CEST 2016
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu May 26 18:15:59 2016 +0200| [f19b0353ca88e3caf8942a39fe3f971952921c46] | committer: Jean-Baptiste Kempf
directdraw: DDSCAPS_FRONTBUFFER is not a CAPS we can request on CreateSurface()
effectively reverting 351cd5a85ac220b68ba7a1ef3c87ca81d77b7d26
Close #16905
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f19b0353ca88e3caf8942a39fe3f971952921c46
---
modules/video_output/win32/directdraw.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/modules/video_output/win32/directdraw.c b/modules/video_output/win32/directdraw.c
index df2cdc6..855de57 100644
--- a/modules/video_output/win32/directdraw.c
+++ b/modules/video_output/win32/directdraw.c
@@ -867,11 +867,8 @@ static int DirectXCreateSurface(vout_display_t *vd,
ddsd.dwFlags |= DDSD_CAPS;
if (use_overlay) {
ddsd.ddsCaps.dwCaps = DDSCAPS_OVERLAY | DDSCAPS_VIDEOMEMORY;
- ddsd.ddsCaps.dwCaps |= DDSCAPS_FLIP | DDSCAPS_FRONTBUFFER;
- if (backbuffer_count > 0)
- ddsd.ddsCaps.dwCaps |= DDSCAPS_COMPLEX;
-
if (backbuffer_count > 0) {
+ ddsd.ddsCaps.dwCaps |= DDSCAPS_COMPLEX | DDSCAPS_FLIP;
ddsd.dwFlags |= DDSD_BACKBUFFERCOUNT;
ddsd.dwBackBufferCount = backbuffer_count;
}
More information about the vlc-commits
mailing list