Assign define for gdi buffer size.

svn path=/trunk/; revision=30060
This commit is contained in:
James Tabor
2007-11-02 02:42:09 +00:00
parent 7c4c90e02b
commit cf90034545
2 changed files with 3 additions and 1 deletions
@@ -77,6 +77,8 @@ typedef enum _GETDCPOINT
GdiGetDCOrg = 6,
} GETDCPOINT, *PGETDCPOINT;
#define GDIBATCHBUFSIZE 0x136
typedef enum _GDIBATCHCMD
{
GdiBCPatBlt,
@@ -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)