Commit in reactos/subsys/win32k on MAIN
makefile+2-21.95 -> 1.96
eng/float.c+85added 1.1
stubs/stubs.c-211.27 -> 1.28
+87-23
1 added + 2 modified, total 3 files

- Implemented EngSaveFloatingPointState and EngRestoreFloatingState.

reactos/subsys/win32k
makefile 1.95 -> 1.96
diff -u -r1.95 -r1.96
--- makefile	8 Mar 2004 07:04:56 -0000	1.95
+++ makefile	11 Mar 2004 21:38:58 -0000	1.96
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.95 2004/03/08 07:04:56 dwelch Exp $
+# $Id: makefile,v 1.96 2004/03/11 21:38:58 dwelch Exp $
 
 PATH_TO_TOP = ../..
 
@@ -42,7 +42,7 @@
     eng/clip.o eng/copybits.o eng/device.o eng/handle.o eng/lineto.o \
     eng/paint.o eng/palette.o eng/perfcnt.o eng/semaphor.o eng/surface.o \
     eng/xlate.o eng/transblt.o eng/mouse.o eng/misc.o eng/nls.o eng/sort.o \
-    eng/gradient.o eng/event.o
+    eng/gradient.o eng/event.o eng/float.o
 
 MAIN_OBJECTS = main/dllmain.o main/svctabm.o
 

reactos/subsys/win32k/eng
float.c added at 1.1
diff -N float.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ float.c	11 Mar 2004 21:38:58 -0000	1.1
@@ -0,0 +1,85 @@
+/*
+ *  ReactOS W32 Subsystem
+ *  Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 ReactOS Team
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+/* $Id: float.c,v 1.1 2004/03/11 21:38:58 dwelch Exp $
+ * 
+ * COPYRIGHT:         See COPYING in the top level directory
+ * PROJECT:           ReactOS kernel
+ * PURPOSE:           Engine floating point functions
+ * FILE:              subsys/win32k/eng/float.c
+ * PROGRAMER:         Jason Filby
+ * REVISION HISTORY:
+ */
+
+#include <ddk/ntddk.h>
+#include <ddk/winddi.h>
+#include <win32k/dc.h>
+#include <win32k/gdiobj.h>
+#include <include/dib.h>
+#include <include/object.h>
+#include <include/paint.h>
+#include "handle.h"
+#include "../dib/dib.h"
+
+#define NDEBUG
+#include <win32k/debug1.h>
+
+BOOL
+STDCALL
+EngRestoreFloatingPointState ( IN VOID *Buffer )
+{
+  NTSTATUS Status;
+  Status = KeRestoreFloatingPointState((PKFLOATING_SAVE)Buffer);
+  if (Status != STATUS_SUCCESS)
+    {
+      return FALSE;
+    }
+  return TRUE;
+}
+
+BOOL
+STDCALL
+EngSaveFloatingPointState(OUT VOID  *Buffer,
+			  IN ULONG  BufferSize)
+{
+  KFLOATING_SAVE TempBuffer;
+  NTSTATUS Status;
+  if (Buffer == NULL || BufferSize == 0)
+    {      
+      /* Check for floating point support. */
+      Status = KeSaveFloatingPointState(&TempBuffer);
+      if (Status != STATUS_SUCCESS)
+	{
+	  return(0);
+	}
+      KeRestoreFloatingPointState(&TempBuffer);
+      return(sizeof(KFLOATING_SAVE));
+    }
+  if (BufferSize < sizeof(KFLOATING_SAVE))
+    {
+      return(0);
+    }
+  Status = KeSaveFloatingPointState((PKFLOATING_SAVE)Buffer);
+  if (!NT_SUCCESS(Status))
+    {
+      return FALSE;
+    }
+  return TRUE;
+}
+
+

reactos/subsys/win32k/stubs
stubs.c 1.27 -> 1.28
diff -u -r1.27 -r1.28
--- stubs.c	7 Mar 2004 04:44:41 -0000	1.27
+++ stubs.c	11 Mar 2004 21:38:58 -0000	1.28
@@ -508,27 +508,6 @@
 
 BOOL
 STDCALL
-EngRestoreFloatingPointState ( IN VOID *pBuffer )
-{
-  // www.osr.com/ddk/graphics/gdifncs_9l0n.htm
-  UNIMPLEMENTED;
-  return FALSE;
-}
-
-ULONG
-STDCALL
-EngSaveFloatingPointState(
-	OUT VOID  *pBuffer,
-	IN ULONG  cjBufferSize
-	)
-{
-  // www.osr.com/ddk/graphics/gdifncs_9tif.htm
-  UNIMPLEMENTED;
-  return 0;
-}
-
-BOOL
-STDCALL
 EngSetPointerTag(
 	IN HDEV  hdev,
 	IN SURFOBJ  *psoMask,
CVSspam 0.2.8