winex11: Indicate that dmDisplayFlags is also initialized.

This commit is contained in:
Dmitry Timoshkov 2009-01-05 17:53:50 +08:00 committed by Alexandre Julliard
parent 97da2e57fb
commit 48973dad53
1 changed files with 2 additions and 1 deletions

View File

@ -299,7 +299,8 @@ BOOL CDECL X11DRV_EnumDisplaySettingsEx( LPCWSTR name, DWORD n, LPDEVMODEW devmo
devmode->dmPelsHeight = dd_modes[n].dwHeight; devmode->dmPelsHeight = dd_modes[n].dwHeight;
devmode->dmBitsPerPel = dd_modes[n].dwBPP; devmode->dmBitsPerPel = dd_modes[n].dwBPP;
devmode->dmDisplayFrequency = dd_modes[n].wRefreshRate; devmode->dmDisplayFrequency = dd_modes[n].wRefreshRate;
devmode->dmFields = (DM_PELSWIDTH|DM_PELSHEIGHT|DM_BITSPERPEL); devmode->dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL |
DM_DISPLAYFLAGS;
if (devmode->dmDisplayFrequency) if (devmode->dmDisplayFrequency)
{ {
devmode->dmFields |= DM_DISPLAYFREQUENCY; devmode->dmFields |= DM_DISPLAYFREQUENCY;