Commit 45ea56ff authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

parent 0a28300c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment