From f539cfcea7127968d9012af65b5d79499ffe4a92 Mon Sep 17 00:00:00 2001 From: Jens Collin Date: Mon, 4 Oct 2004 19:23:31 +0000 Subject: [PATCH] return hardcoded value (1) for SM_CMONITORS. svn path=/trunk/; revision=11188 --- reactos/subsys/win32k/ntuser/metric.c | 29 +++++++++++++++------------ 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/metric.c b/reactos/subsys/win32k/ntuser/metric.c index 7522e61f8a5..abfa13ee46e 100644 --- a/reactos/subsys/win32k/ntuser/metric.c +++ b/reactos/subsys/win32k/ntuser/metric.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: metric.c,v 1.21 2004/05/14 23:57:32 weiden Exp $ +/* $Id: metric.c,v 1.22 2004/10/04 19:23:31 jc Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -74,7 +74,7 @@ NtUserGetSystemMetrics(ULONG Index) &WinStaObject); if (!NT_SUCCESS(Status)) return 0xFFFFFFFF; - + CurInfo = IntGetSysCursorInfo(WinStaObject); switch(Index) { @@ -88,11 +88,11 @@ NtUserGetSystemMetrics(ULONG Index) Result = (UINT)CurInfo->SwapButtons; break; } - + ObDereferenceObject(WinStaObject); return Result; } - + case SM_CXDRAG: case SM_CYDRAG: return(2); @@ -125,8 +125,8 @@ NtUserGetSystemMetrics(ULONG Index) the screen width */ case SM_CYMAXIMIZED: return(NtUserGetSystemMetrics(SM_CYSCREEN) - 20); /* This seems to be 20 - pixels less than - the screen height, + pixels less than + the screen height, taskbar maybe? */ case SM_CXMAXTRACK: return(NtUserGetSystemMetrics(SM_CYSCREEN) + 12); @@ -192,18 +192,21 @@ NtUserGetSystemMetrics(ULONG Index) return(15); case SM_DBCSENABLED: case SM_DEBUG: - case SM_MENUDROPALIGNMENT: + case SM_MENUDROPALIGNMENT: case SM_MIDEASTENABLED: return(0); - case SM_MOUSEPRESENT: + case SM_MOUSEPRESENT: return(1); - case SM_NETWORK: + case SM_NETWORK: return(3); - case SM_PENWINDOWS: - case SM_SECURE: - case SM_SHOWSOUNDS: - case SM_SLOWMACHINE: + case SM_PENWINDOWS: + case SM_SECURE: + case SM_SHOWSOUNDS: + case SM_SLOWMACHINE: return(0); + case SM_CMONITORS: + return(1); + default: return(0xFFFFFFFF); }