ddraw/tests: Fix compilation on systems that don't support nameless unions.
This commit is contained in:
parent
bced2e21db
commit
aa93d7b80d
|
@ -2900,10 +2900,10 @@ static void SurfaceCapsTest(void)
|
||||||
if (create.ddsCaps.dwCaps & DDSCAPS_ZBUFFER)
|
if (create.ddsCaps.dwCaps & DDSCAPS_ZBUFFER)
|
||||||
{
|
{
|
||||||
create.dwFlags |= DDSD_PIXELFORMAT;
|
create.dwFlags |= DDSD_PIXELFORMAT;
|
||||||
U4(create).ddpfPixelFormat.dwSize = sizeof(U4(create).ddpfPixelFormat);
|
create.ddpfPixelFormat.dwSize = sizeof(create.ddpfPixelFormat);
|
||||||
U4(create).ddpfPixelFormat.dwFlags = DDPF_ZBUFFER;
|
create.ddpfPixelFormat.dwFlags = DDPF_ZBUFFER;
|
||||||
U1(U4(create).ddpfPixelFormat).dwZBufferBitDepth = 16;
|
U1(create.ddpfPixelFormat).dwZBufferBitDepth = 16;
|
||||||
U3(U4(create).ddpfPixelFormat).dwZBitMask = 0x0000FFFF;
|
U3(create.ddpfPixelFormat).dwZBitMask = 0x0000FFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr = IDirectDraw_CreateSurface(lpDD, &create, &surface1, NULL);
|
hr = IDirectDraw_CreateSurface(lpDD, &create, &surface1, NULL);
|
||||||
|
|
Loading…
Reference in New Issue