[vlc-commits] Revert "directdraw: in overlay mode we need to use DDSCAPS_FLIP and DDSCAPS_FRONTBUFFER"

Jean-Baptiste Kempf git at videolan.org
Thu May 26 18:36:42 CEST 2016


vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu May 26 18:36:30 2016 +0200| [a1b16c53a274e60797ec4eb8150fbe69e6d4d8bb] | committer: Jean-Baptiste Kempf

Revert "directdraw: in overlay mode we need to use DDSCAPS_FLIP and DDSCAPS_FRONTBUFFER"

This reverts commit 11f7a3676d9717970f7240ba9f251ae47f7c9a08.

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

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

diff --git a/modules/video_output/msw/directx.c b/modules/video_output/msw/directx.c
index 5b2522f..d8a002c 100644
--- a/modules/video_output/msw/directx.c
+++ b/modules/video_output/msw/directx.c
@@ -861,9 +861,8 @@ static int DirectXCreateSurface(vout_display_t *vd,
     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)
-            ddsd.ddsCaps.dwCaps |= DDSCAPS_COMPLEX;
+            ddsd.ddsCaps.dwCaps |= DDSCAPS_COMPLEX | DDSCAPS_FLIP;
 
         if (backbuffer_count > 0) {
             ddsd.dwFlags |= DDSD_BACKBUFFERCOUNT;



More information about the vlc-commits mailing list