Author: jimtabor
Date: Tue Oct 17 09:30:54 2006
New Revision: 24553
URL:
http://svn.reactos.org/svn/reactos?rev=24553&view=rev
Log:
Implement Get & Set batch limit.
Modified:
trunk/reactos/dll/win32/gdi32/include/gdi32p.h
trunk/reactos/dll/win32/gdi32/misc/misc.c
trunk/reactos/dll/win32/gdi32/misc/stubs.c
Modified: trunk/reactos/dll/win32/gdi32/include/gdi32p.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/include/gd…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/include/gdi32p.h (original)
+++ trunk/reactos/dll/win32/gdi32/include/gdi32p.h Tue Oct 17 09:30:54 2006
@@ -6,11 +6,14 @@
* PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
*/
+#define GDI_BATCH_LIMIT 20
+
/* DATA **********************************************************************/
extern PGDI_TABLE_ENTRY GdiHandleTable;
extern HANDLE hProcessHeap;
extern HANDLE CurrentProcessId;
+extern DWORD GDI_BatchLimit;
typedef INT
(CALLBACK* EMFPLAYPROC)(
Modified: trunk/reactos/dll/win32/gdi32/misc/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/misc.…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/misc.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/misc.c Tue Oct 17 09:30:54 2006
@@ -30,6 +30,7 @@
PGDI_TABLE_ENTRY GdiHandleTable = NULL;
HANDLE CurrentProcessId = NULL;
+DWORD GDI_BatchLimit = 1;
/*
* @implemented
@@ -69,3 +70,29 @@
}
return FALSE;
}
+
+
+/*
+ * @implemented
+ */
+DWORD
+STDCALL
+GdiSetBatchLimit(DWORD Limit)
+{
+ DWORD OldLimit = GDI_BatchLimit;
+ if ((!Limit) || (Limit > GDI_BATCH_LIMIT)) return Limit;
+ GdiFlush();
+ GDI_BatchLimit = Limit;
+ return OldLimit;
+}
+
+
+/*
+ * @implemented
+ */
+DWORD
+STDCALL
+GdiGetBatchLimit()
+{
+ return GDI_BatchLimit;
+}
Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/stubs.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubs.c Tue Oct 17 09:30:54 2006
@@ -868,34 +868,6 @@
* implemented yet.
*/
return TRUE;
-}
-
-
-/*
- * @unimplemented
- */
-DWORD
-STDCALL
-GdiSetBatchLimit(
- DWORD a0
- )
-{
- UNIMPLEMENTED;
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-
-/*
- * @unimplemented
- */
-DWORD
-STDCALL
-GdiGetBatchLimit()
-{
- UNIMPLEMENTED;
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
}