winex11: Indicate that dmDisplayFlags is also initialized.
This commit is contained in:
parent
97da2e57fb
commit
48973dad53
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue