ddraw/tests: Fix compilation on systems that don't support nameless unions.

oldstable
Francois Gouget 2013-10-27 00:23:45 +02:00 committed by Alexandre Julliard
parent 26c2dc93cb
commit 4dc152bd70
4 changed files with 4 additions and 4 deletions

View File

@ -3381,7 +3381,7 @@ static void test_surface_lock(void)
if (tests[i].caps & DDSCAPS_ZBUFFER)
{
ddsd.dwFlags |= DDSD_ZBUFFERBITDEPTH;
ddsd.dwZBufferBitDepth = z_depth;
U2(ddsd).dwZBufferBitDepth = z_depth;
}
ddsd.ddsCaps.dwCaps = tests[i].caps;

View File

@ -4041,7 +4041,7 @@ static void test_surface_lock(void)
if (tests[i].caps & DDSCAPS_ZBUFFER)
{
ddsd.dwFlags |= DDSD_ZBUFFERBITDEPTH;
ddsd.dwZBufferBitDepth = z_depth;
U2(ddsd).dwZBufferBitDepth = z_depth;
}
ddsd.ddsCaps.dwCaps = tests[i].caps;

View File

@ -4665,7 +4665,7 @@ static void test_surface_lock(void)
if (tests[i].caps & DDSCAPS_ZBUFFER)
{
ddsd.dwFlags |= DDSD_PIXELFORMAT;
ddsd.ddpfPixelFormat = z_fmt;
U4(ddsd).ddpfPixelFormat = z_fmt;
}
ddsd.ddsCaps.dwCaps = tests[i].caps;
ddsd.ddsCaps.dwCaps2 = tests[i].caps2;

View File

@ -4551,7 +4551,7 @@ static void test_surface_lock(void)
if (tests[i].caps & DDSCAPS_ZBUFFER)
{
ddsd.dwFlags |= DDSD_PIXELFORMAT;
ddsd.ddpfPixelFormat = z_fmt;
U4(ddsd).ddpfPixelFormat = z_fmt;
}
ddsd.ddsCaps.dwCaps = tests[i].caps;
ddsd.ddsCaps.dwCaps2 = tests[i].caps2;