ddraw/tests: Fix the refresh rate test when running with the Windows 'Standard VGA' driver.

This commit is contained in:
Francois Gouget 2013-02-20 00:14:40 +01:00 committed by Alexandre Julliard
parent df56b233e0
commit 3e6d0a373d

View file

@ -473,7 +473,10 @@ static void enumdisplaymodes(void)
modes16bpp_cnt = 0;
ddsd.dwFlags = DDSD_PIXELFORMAT | DDSD_REFRESHRATE;
U2(ddsd).dwRefreshRate = 1;
/* Ask for a refresh rate that could not possibly be used. But note that
* the Windows 'Standard VGA' driver claims to run the display at 1Hz!
*/
U2(ddsd).dwRefreshRate = 2;
rc = IDirectDraw_EnumDisplayModes(lpDD, 0, &ddsd, 0, enummodescallback_16bit);
ok(rc==DD_OK,"EnumDisplayModes returned: %x\n",rc);