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:
parent
7d37e7e6f6
commit
6ae987ea98
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue