return hardcoded value (1) for SM_CMONITORS.

svn path=/trunk/; revision=11188
This commit is contained in:
Jens Collin 2004-10-04 19:23:31 +00:00
parent aa496615df
commit f539cfcea7

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 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 * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -74,7 +74,7 @@ NtUserGetSystemMetrics(ULONG Index)
&WinStaObject); &WinStaObject);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
return 0xFFFFFFFF; return 0xFFFFFFFF;
CurInfo = IntGetSysCursorInfo(WinStaObject); CurInfo = IntGetSysCursorInfo(WinStaObject);
switch(Index) switch(Index)
{ {
@ -88,11 +88,11 @@ NtUserGetSystemMetrics(ULONG Index)
Result = (UINT)CurInfo->SwapButtons; Result = (UINT)CurInfo->SwapButtons;
break; break;
} }
ObDereferenceObject(WinStaObject); ObDereferenceObject(WinStaObject);
return Result; return Result;
} }
case SM_CXDRAG: case SM_CXDRAG:
case SM_CYDRAG: case SM_CYDRAG:
return(2); return(2);
@ -125,8 +125,8 @@ NtUserGetSystemMetrics(ULONG Index)
the screen width */ the screen width */
case SM_CYMAXIMIZED: case SM_CYMAXIMIZED:
return(NtUserGetSystemMetrics(SM_CYSCREEN) - 20); /* This seems to be 20 return(NtUserGetSystemMetrics(SM_CYSCREEN) - 20); /* This seems to be 20
pixels less than pixels less than
the screen height, the screen height,
taskbar maybe? */ taskbar maybe? */
case SM_CXMAXTRACK: case SM_CXMAXTRACK:
return(NtUserGetSystemMetrics(SM_CYSCREEN) + 12); return(NtUserGetSystemMetrics(SM_CYSCREEN) + 12);
@ -192,18 +192,21 @@ NtUserGetSystemMetrics(ULONG Index)
return(15); return(15);
case SM_DBCSENABLED: case SM_DBCSENABLED:
case SM_DEBUG: case SM_DEBUG:
case SM_MENUDROPALIGNMENT: case SM_MENUDROPALIGNMENT:
case SM_MIDEASTENABLED: case SM_MIDEASTENABLED:
return(0); return(0);
case SM_MOUSEPRESENT: case SM_MOUSEPRESENT:
return(1); return(1);
case SM_NETWORK: case SM_NETWORK:
return(3); return(3);
case SM_PENWINDOWS: case SM_PENWINDOWS:
case SM_SECURE: case SM_SECURE:
case SM_SHOWSOUNDS: case SM_SHOWSOUNDS:
case SM_SLOWMACHINE: case SM_SLOWMACHINE:
return(0); return(0);
case SM_CMONITORS:
return(1);
default: default:
return(0xFFFFFFFF); return(0xFFFFFFFF);
} }