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.
This commit is contained in:
Henri Verbeet 2010-11-09 11:38:41 +01:00 committed by Alexandre Julliard
parent 7d37e7e6f6
commit 6ae987ea98
1 changed files with 5 additions and 2 deletions

View File

@ -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)