dxdiagn: Fix compilation on systems that don't support nameless unions.
This commit is contained in:
parent
2c12c17ab6
commit
ed366f22a2
|
@ -20,9 +20,9 @@
|
|||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "wine/debug.h"
|
||||
|
||||
#define COBJMACROS
|
||||
#define NONAMELESSUNION
|
||||
#include "dxdiag_private.h"
|
||||
#include "wine/unicode.h"
|
||||
#include "winver.h"
|
||||
|
@ -33,6 +33,8 @@
|
|||
#include "mmddk.h"
|
||||
#include <ddraw.h>
|
||||
|
||||
#include "wine/debug.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(dxdiag);
|
||||
|
||||
/* IDxDiagProvider IUnknown parts follow: */
|
||||
|
@ -478,7 +480,7 @@ static HRESULT DXDiag_InitDXDiagDisplayContainer(IDxDiagContainer* pSubCont)
|
|||
if (surface_descr.dwFlags & DDSD_HEIGHT)
|
||||
add_prop_ui4( pDisplayAdapterSubCont, dwHeight, surface_descr.dwHeight );
|
||||
if (surface_descr.dwFlags & DDSD_PIXELFORMAT)
|
||||
add_prop_ui4( pDisplayAdapterSubCont, dwBpp, surface_descr.ddpfPixelFormat.dwRGBBitCount );
|
||||
add_prop_ui4( pDisplayAdapterSubCont, dwBpp, surface_descr.u4.ddpfPixelFormat.u1.dwRGBBitCount );
|
||||
}
|
||||
|
||||
add_prop_str( pDisplayAdapterSubCont, szVendorId, szEmpty );
|
||||
|
|
Loading…
Reference in New Issue