ddraw: Some drivers return a refresh rate of 0.

This commit is contained in:
Stefan Dösinger 2008-01-27 13:55:32 +01:00 committed by Alexandre Julliard
parent 089c34b95a
commit 8ad3a1f49e

View File

@ -118,11 +118,15 @@ static HRESULT WINAPI enummodescallback(LPDDSURFACEDESC lpddsd, LPVOID lpContext
ok(U1(*lpddsd).lPitch != 0, "EnumDisplayModes callback with bad pitch\n");
}
/* Check that frequency is valid if applicable */
/* Check that frequency is valid if applicable
*
* This fails on some Windows drivers or Windows versions, so it isn't important
* apparently
if(lpddsd->dwFlags & DDSD_REFRESHRATE)
{
ok(U2(*lpddsd).dwRefreshRate != 0, "EnumDisplayModes callback with bad refresh rate\n");
}
*/
adddisplaymode(lpddsd);