Skip to content

Commit

Permalink
directdraw: we also set the CAPS of the surface we create
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Baptiste Kempf <[email protected]>
  • Loading branch information
robUx4 authored and jbkempf committed May 26, 2016
1 parent ea55b54 commit fe63104
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/video_output/win32/directdraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
Expand Down

0 comments on commit fe63104

Please sign in to comment.