From cf900345456f071aecf9e3584bc1523e4e902c5a Mon Sep 17 00:00:00 2001 From: James Tabor Date: Fri, 2 Nov 2007 02:42:09 +0000 Subject: [PATCH] Assign define for gdi buffer size. svn path=/trunk/; revision=30060 --- reactos/include/reactos/win32k/ntgdityp.h | 2 ++ reactos/subsystems/win32/win32k/objects/dcutil.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/include/reactos/win32k/ntgdityp.h b/reactos/include/reactos/win32k/ntgdityp.h index 61a2338725f..59917e8cc83 100644 --- a/reactos/include/reactos/win32k/ntgdityp.h +++ b/reactos/include/reactos/win32k/ntgdityp.h @@ -77,6 +77,8 @@ typedef enum _GETDCPOINT GdiGetDCOrg = 6, } GETDCPOINT, *PGETDCPOINT; +#define GDIBATCHBUFSIZE 0x136 + typedef enum _GDIBATCHCMD { GdiBCPatBlt, diff --git a/reactos/subsystems/win32/win32k/objects/dcutil.c b/reactos/subsystems/win32/win32k/objects/dcutil.c index e6414a0221e..f8e85cd9425 100644 --- a/reactos/subsystems/win32/win32k/objects/dcutil.c +++ b/reactos/subsystems/win32/win32k/objects/dcutil.c @@ -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)