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

This commit is contained in:
Lionel Ulmer 2005-11-02 10:54:42 +00:00 committed by Alexandre Julliard
parent ff7795ef4c
commit 5ae22b8021
2 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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