Commit 6ae987ea authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d9/tests: Specify width and height when changing the display orientation.

This appears to be required on Windows 7, or perhaps depends on the video driver.
parent 7d37e7e6
......@@ -268,9 +268,12 @@ static void test_get_adapter_displaymode_ex(void)
memset(&startmode, 0, sizeof(startmode));
startmode.dmSize = sizeof(startmode);
startmode.dmFields = DM_DISPLAYORIENTATION;
S2(U1(startmode)).dmDisplayOrientation = DMDO_180;
retval = pEnumDisplaySettingsExA(NULL, ENUM_CURRENT_SETTINGS, &startmode, 0);
ok(retval, "Failed to retrieve current display mode, retval %d.\n", retval);
if (!retval) goto out;
startmode.dmFields = DM_DISPLAYORIENTATION | DM_PELSWIDTH | DM_PELSHEIGHT;
S2(U1(startmode)).dmDisplayOrientation = DMDO_180;
retval = pChangeDisplaySettingsExA(NULL, &startmode, NULL, 0, NULL);
if(retval == DISP_CHANGE_BADMODE)
......
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