ddraw/tests: Fix compilation on systems that don't support nameless unions.
This commit is contained in:
parent
61652263fa
commit
baf32ced74
|
@ -8264,7 +8264,7 @@ static void test_signed_formats(void)
|
|||
ok(SUCCEEDED(hr), "Failed to lock surface, hr %#x, format %s.\n", hr, formats[i].name);
|
||||
for (y = 0; y < 4; y++)
|
||||
{
|
||||
memcpy((char *)surface_desc.lpSurface + y * surface_desc.lPitch,
|
||||
memcpy((char *)surface_desc.lpSurface + y * U1(surface_desc).lPitch,
|
||||
(char *)formats[i].content + y * 4 * formats[i].pixel_size,
|
||||
width * formats[i].pixel_size);
|
||||
}
|
||||
|
|
|
@ -8474,7 +8474,7 @@ static void test_signed_formats(void)
|
|||
ok(SUCCEEDED(hr), "Failed to lock surface, hr %#x, format %s.\n", hr, formats[i].name);
|
||||
for (y = 0; y < 4; y++)
|
||||
{
|
||||
memcpy((char *)surface_desc.lpSurface + y * surface_desc.lPitch,
|
||||
memcpy((char *)surface_desc.lpSurface + y * U1(surface_desc).lPitch,
|
||||
(char *)formats[i].content + y * 4 * formats[i].pixel_size,
|
||||
width * formats[i].pixel_size);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue