Mercurial > mplayer.hg
changeset 34091:954f6d044371
Fix DirectX compilation error.
In DirectX 8 and 9, member dwBackBufferCount is in an anonymous union.
MinGW complains:
error: unknown field 'dwBackBufferCount' specified in initializer
author | ib |
---|---|
date | Thu, 06 Oct 2011 10:04:40 +0000 |
parents | de2fbf5e5a4e |
children | dbf5042ab255 |
files | libvo/vo_directx.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_directx.c Tue Oct 04 02:02:53 2011 +0000 +++ b/libvo/vo_directx.c Thu Oct 06 10:04:40 2011 +0000 @@ -229,9 +229,9 @@ .dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH | DDSD_BACKBUFFERCOUNT | DDSD_PIXELFORMAT, .dwWidth = image_width, .dwHeight = image_height, - .dwBackBufferCount = 2, }; uint32_t i = 0; + ddsdOverlay.dwBackBufferCount = 2; while (i < NUM_FORMATS && imgfmt != g_ddpf[i].img_format) i++; if (!g_lpdd || !g_lpddsPrimary || i == NUM_FORMATS) @@ -628,10 +628,10 @@ .dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH | DDSD_PIXELFORMAT, .dwWidth = 300, .dwHeight = 280, - .dwBackBufferCount = 0, }; uint32_t i; uint32_t formatcount = 0; + ddsdOverlay.dwBackBufferCount = 0; //get driver caps to determine overlay support ddrval = g_lpdd->lpVtbl->GetCaps(g_lpdd, &capsDrv, NULL); if (FAILED(ddrval)) {