Dmitry Timoshkov : winex11: Indicate that dmDisplayFlags is also initialized.
Alexandre Julliard
julliard at winehq.org
Mon Jan 5 10:24:26 CST 2009
Module: wine
Branch: master
Commit: 48973dad53f9292204cd5a193a56cff65d3eba2d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=48973dad53f9292204cd5a193a56cff65d3eba2d
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Mon Jan 5 17:53:50 2009 +0800
winex11: Indicate that dmDisplayFlags is also initialized.
---
dlls/winex11.drv/settings.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/settings.c b/dlls/winex11.drv/settings.c
index 6bd804a..e2aafbc 100644
--- a/dlls/winex11.drv/settings.c
+++ b/dlls/winex11.drv/settings.c
@@ -299,7 +299,8 @@ BOOL CDECL X11DRV_EnumDisplaySettingsEx( LPCWSTR name, DWORD n, LPDEVMODEW devmo
devmode->dmPelsHeight = dd_modes[n].dwHeight;
devmode->dmBitsPerPel = dd_modes[n].dwBPP;
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)
{
devmode->dmFields |= DM_DISPLAYFREQUENCY;
More information about the wine-cvs
mailing list