d3d9/tests: Fix compilation on systems that don't support nameless unions or structs.

This commit is contained in:
Francois Gouget 2010-08-29 23:38:14 +02:00 committed by Alexandre Julliard
parent 0a28300c49
commit 45ea56ffb4

View File

@ -269,7 +269,7 @@ static void test_get_adapter_displaymode_ex(void)
memset(&startmode, 0, sizeof(startmode));
startmode.dmSize = sizeof(startmode);
startmode.dmFields = DM_DISPLAYORIENTATION;
startmode.dmDisplayOrientation = DMDO_180;
S2(U1(startmode)).dmDisplayOrientation = DMDO_180;
retval = pChangeDisplaySettingsExA(NULL, &startmode, NULL, 0, NULL);
@ -282,7 +282,7 @@ static void test_get_adapter_displaymode_ex(void)
ok(retval == DISP_CHANGE_SUCCESSFUL,"ChangeDisplaySettingsEx failed with %d\n", retval);
/* try retrieve orientation info with EnumDisplaySettingsEx*/
startmode.dmFields = 0;
startmode.dmDisplayOrientation = 0;
S2(U1(startmode)).dmDisplayOrientation = 0;
ok(pEnumDisplaySettingsExA(NULL, ENUM_CURRENT_SETTINGS, &startmode, EDS_ROTATEDMODE), "EnumDisplaySettingsEx failed\n");
/*now that orientation has changed start tests for GetAdapterDisplayModeEx: invalid Size*/
@ -310,7 +310,7 @@ static void test_get_adapter_displaymode_ex(void)
/* don't know yet how to test for ScanLineOrdering, just testing that it is set to a value by GetAdapterDisplayModeEx*/
todo_wine ok(mode_ex.ScanLineOrdering != 0, "ScanLineOrdering returned 0\n");
/* check that orientation is returned correctly by GetAdapterDisplayModeEx and EnumDisplaySettingsEx*/
todo_wine ok(startmode.dmDisplayOrientation == DMDO_180 && rotation == D3DDISPLAYROTATION_180, "rotation is %d instead of %d\n", rotation, startmode.dmDisplayOrientation);
todo_wine ok(S2(U1(startmode)).dmDisplayOrientation == DMDO_180 && rotation == D3DDISPLAYROTATION_180, "rotation is %d instead of %d\n", rotation, S2(U1(startmode)).dmDisplayOrientation);
trace("GetAdapterDisplayModeEx returned Width = %d,Height = %d, RefreshRate = %d, Format = %x, ScanLineOrdering = %x, rotation = %d\n",
mode_ex.Width, mode_ex.Height, mode_ex.RefreshRate, mode_ex.Format, mode_ex.ScanLineOrdering, rotation);