Commit 5ae22b80 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

Add 'ENUM_...._SETTINGS' flag and make use of it in the X11DRV code.

parent ff7795ef
......@@ -170,12 +170,12 @@ BOOL X11DRV_EnumDisplaySettingsEx( LPCWSTR name, DWORD n, LPDEVMODEW devmode, DW
devmode->dmDisplayFlags = 0;
devmode->dmDisplayFrequency = 0;
devmode->dmSize = sizeof(DEVMODEW);
if (n == (DWORD)-1)
if (n == ENUM_CURRENT_SETTINGS)
{
TRACE("mode %ld (current) -- getting current mode (%s)\n", n, handler_name);
n = pGetCurrentMode();
}
if (n == (DWORD)-2)
if (n == ENUM_REGISTRY_SETTINGS)
{
TRACE("mode %ld (registry) -- getting default mode (%s)\n", n, handler_name);
n = dd_mode_default;
......
......@@ -1304,6 +1304,10 @@ BOOL WINAPI SetSysColors(INT,const INT*,const COLORREF*);
#define IDTRYAGAIN 10
#define IDCONTINUE 11
/* Used for EnumDisplaySettingsEx */
#define ENUM_CURRENT_SETTINGS ((DWORD) -1)
#define ENUM_REGISTRY_SETTINGS ((DWORD) -2)
/****** Window classes ******/
typedef struct tagCREATESTRUCTA
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment