Author: jimtabor
Date: Fri Nov 2 05:42:09 2007
New Revision: 30060
URL:
http://svn.reactos.org/svn/reactos?rev=30060&view=rev
Log:
Assign define for gdi buffer size.
Modified:
trunk/reactos/include/reactos/win32k/ntgdityp.h
trunk/reactos/subsystems/win32/win32k/objects/dcutil.c
Modified: trunk/reactos/include/reactos/win32k/ntgdityp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntg…
==============================================================================
--- trunk/reactos/include/reactos/win32k/ntgdityp.h (original)
+++ trunk/reactos/include/reactos/win32k/ntgdityp.h Fri Nov 2 05:42:09 2007
@@ -77,6 +77,8 @@
GdiGetDCOrg = 6,
} GETDCPOINT, *PGETDCPOINT;
+#define GDIBATCHBUFSIZE 0x136
+
typedef enum _GDIBATCHCMD
{
GdiBCPatBlt,
Modified: trunk/reactos/subsystems/win32/win32k/objects/dcutil.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dcutil.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dcutil.c Fri Nov 2 05:42:09 2007
@@ -324,7 +324,7 @@
PTEB pTeb = NtCurrentTeb();
ULONG GdiBatchCount = pTeb->GdiBatchCount;
- if( (GdiBatchCount > 0) && (GdiBatchCount <= 310)) // 310 UL size of
Buffer in TEB.
+ if( (GdiBatchCount > 0) && (GdiBatchCount <= GDIBATCHBUFSIZE))
{
HDC hDC = (HDC) pTeb->GdiTebBatch.HDC;
if (hDC)