Ignore frequency requests in Desktop mode.

This commit is contained in:
Lionel Ulmer 2005-11-28 10:39:28 +01:00 committed by Alexandre Julliard
parent 22cf59ba43
commit 2ca5efea08
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ LONG X11DRV_ChangeDisplaySettingsEx( LPCWSTR devname, LPDEVMODEW devmode,
if (devmode->dmPelsHeight != dd_modes[i].dwHeight)
continue;
}
if (devmode->dmFields & DM_DISPLAYFREQUENCY)
if ((devmode->dmFields & DM_DISPLAYFREQUENCY) && (dd_modes[i].wRefreshRate != 0))
{
if (devmode->dmDisplayFrequency != dd_modes[i].wRefreshRate)
continue;