Commit c6131be8 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

DirectDraw: revert part of 929c88bd

Should close #13706
parent dc1916ee
...@@ -851,8 +851,8 @@ static int DirectXCreateSurface(vout_display_t *vd, ...@@ -851,8 +851,8 @@ static int DirectXCreateSurface(vout_display_t *vd,
ddsd.dwSize = sizeof(ddsd); ddsd.dwSize = sizeof(ddsd);
ddsd.ddpfPixelFormat.dwSize = sizeof(ddsd.ddpfPixelFormat); ddsd.ddpfPixelFormat.dwSize = sizeof(ddsd.ddpfPixelFormat);
ddsd.dwFlags = DDSD_HEIGHT | DDSD_WIDTH; ddsd.dwFlags = DDSD_HEIGHT | DDSD_WIDTH;
ddsd.dwWidth = fmt->i_width; ddsd.dwWidth = fmt->i_visible_width;
ddsd.dwHeight = fmt->i_height; ddsd.dwHeight = fmt->i_visible_height;
if (fourcc) { if (fourcc) {
ddsd.dwFlags |= DDSD_PIXELFORMAT; ddsd.dwFlags |= DDSD_PIXELFORMAT;
ddsd.ddpfPixelFormat.dwFlags = DDPF_FOURCC; ddsd.ddpfPixelFormat.dwFlags = DDPF_FOURCC;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment