[Bug 16777] New: EnumDisplaySettingsEx does not set DM_DISPLAYFLAGS

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jan 3 18:15:45 CST 2009


http://bugs.winehq.org/show_bug.cgi?id=16777

           Summary: EnumDisplaySettingsEx does not set DM_DISPLAYFLAGS
           Product: Wine
           Version: 1.1.12
          Platform: Other
        OS/Version: other
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: winex11.drv
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: excors at gmail.com


I have a (non-public) application that says:

    EnumDisplaySettingsA(0, ENUM_CURRENT_SETTINGS, &dm); // [omitted error
handling]
    // EnumDisplaySettings is documented to set the values of the following:
    const DWORD expectedFlags =
DM_PELSWIDTH|DM_PELSHEIGHT|DM_BITSPERPEL|DM_DISPLAYFREQUENCY|DM_DISPLAYFLAGS;
    assert((dm.dmFields & expectedFlags) == expectedFlags);

http://msdn.microsoft.com/en-us/library/ms533265(VS.85).aspx says:

    "The EnumDisplaySettings function sets values for the following five
DEVMODE members: dmBitsPerPel, dmPelsWidth, dmPelsHeight, dmDisplayFlags,
dmDisplayFrequency"

so that behaviour is indeed documented.

X11DRV_EnumDisplaySettingsEx initialises dmDisplayFlags to 0, but it does not
add DM_DISPLAYFLAGS to dmFields, and so the application complains.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list