Assign define for gdi buffer size.
authorJames Tabor <james.tabor@reactos.org>
Fri, 2 Nov 2007 02:42:09 +0000 (02:42 +0000)
committerJames Tabor <james.tabor@reactos.org>
Fri, 2 Nov 2007 02:42:09 +0000 (02:42 +0000)
svn path=/trunk/; revision=30060

reactos/include/reactos/win32k/ntgdityp.h
reactos/subsystems/win32/win32k/objects/dcutil.c

index 61a2338..59917e8 100644 (file)
@@ -77,6 +77,8 @@ typedef enum _GETDCPOINT
     GdiGetDCOrg = 6,\r
 } GETDCPOINT, *PGETDCPOINT;\r
 \r
+#define GDIBATCHBUFSIZE 0x136\r
+\r
 typedef enum _GDIBATCHCMD\r
 {\r
     GdiBCPatBlt,\r
index e6414a0..f8e85cd 100644 (file)
@@ -324,7 +324,7 @@ NtGdiFlushUserBatch(VOID)
   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)