mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 19:26:16 +00:00
Assign define for gdi buffer size.
svn path=/trunk/; revision=30060
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user