ddraw/tests: Fix compilation on systems that don't support nameless unions.
This commit is contained in:
parent
22edaaef16
commit
7478d9c44d
|
@ -110,18 +110,18 @@ static HRESULT WINAPI enummodescallback(LPDDSURFACEDESC lpddsd, LPVOID lpContext
|
||||||
{
|
{
|
||||||
trace("Width = %i, Height = %i, Refresh Rate = %i, Pitch = %i, flags =%02X\r\n",
|
trace("Width = %i, Height = %i, Refresh Rate = %i, Pitch = %i, flags =%02X\r\n",
|
||||||
lpddsd->dwWidth, lpddsd->dwHeight,
|
lpddsd->dwWidth, lpddsd->dwHeight,
|
||||||
U2(*lpddsd).dwRefreshRate, lpddsd->lPitch, lpddsd->dwFlags);
|
U2(*lpddsd).dwRefreshRate, U1(*lpddsd).lPitch, lpddsd->dwFlags);
|
||||||
|
|
||||||
/* Check that the pitch is valid if applicable */
|
/* Check that the pitch is valid if applicable */
|
||||||
if(lpddsd->dwFlags & DDSD_PITCH)
|
if(lpddsd->dwFlags & DDSD_PITCH)
|
||||||
{
|
{
|
||||||
ok(lpddsd->lPitch != 0, "EnumDisplayModes callback with bad pitch\n");
|
ok(U1(*lpddsd).lPitch != 0, "EnumDisplayModes callback with bad pitch\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check that frequency is valid if applicable */
|
/* Check that frequency is valid if applicable */
|
||||||
if(lpddsd->dwFlags & DDSD_REFRESHRATE)
|
if(lpddsd->dwFlags & DDSD_REFRESHRATE)
|
||||||
{
|
{
|
||||||
ok(lpddsd->dwRefreshRate != 0, "EnumDisplayModes callback with bad refresh rate\n");
|
ok(U2(*lpddsd).dwRefreshRate != 0, "EnumDisplayModes callback with bad refresh rate\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
adddisplaymode(lpddsd);
|
adddisplaymode(lpddsd);
|
||||||
|
|
Loading…
Reference in New Issue