mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
Fix gdi init so it can support batch. Used wrong limit source.
svn path=/trunk/; revision=29993
This commit is contained in:
parent
bb884beb4a
commit
b45ddf2209
3 changed files with 6 additions and 7 deletions
|
@ -37,7 +37,7 @@ GdiProcessSetup (VOID)
|
|||
/* map the gdi handle table to user space */
|
||||
GdiHandleTable = NtCurrentTeb()->ProcessEnvironmentBlock->GdiSharedHandleTable;
|
||||
CurrentProcessId = NtCurrentTeb()->Cid.UniqueProcess;
|
||||
GDI_BatchLimit = NtCurrentTeb()->GdiBatchCount;
|
||||
GDI_BatchLimit = (DWORD) NtCurrentTeb()->ProcessEnvironmentBlock->GdiDCAttributeList;
|
||||
}
|
||||
|
||||
|
||||
|
@ -59,23 +59,21 @@ GdiDllInitialize (
|
|||
break;
|
||||
|
||||
case DLL_THREAD_ATTACH:
|
||||
NtCurrentTeb()->GdiTebBatch.Offset = 0;
|
||||
NtCurrentTeb()->GdiBatchCount = 0;
|
||||
break;
|
||||
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* FIXME: working teb handling needed */
|
||||
NtCurrentTeb()->GdiTebBatch.Offset = 0;
|
||||
NtCurrentTeb()->GdiBatchCount = 0;
|
||||
#endif
|
||||
// Very simple, the list will fill itself as it is needed.
|
||||
if(!SetStockObjects)
|
||||
{
|
||||
RtlZeroMemory( &stock_objects, NB_STOCK_OBJECTS); //Assume Ros is dirty.
|
||||
SetStockObjects = TRUE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -627,7 +627,7 @@ typedef struct _PEB
|
|||
PVOID* ProcessHeaps;
|
||||
PVOID GdiSharedHandleTable;
|
||||
PVOID ProcessStarterHelper;
|
||||
PVOID GdiDCAttributeList;
|
||||
ULONG GdiDCAttributeList;
|
||||
#if (NTDDI_VERSION >= NTDDI_LONGHORN)
|
||||
struct _RTL_CRITICAL_SECTION *LoaderLock;
|
||||
#else
|
||||
|
|
|
@ -117,6 +117,7 @@ Win32kProcessCallback(struct _EPROCESS *Process,
|
|||
{
|
||||
/* map the gdi handle table to user land */
|
||||
Process->Peb->GdiSharedHandleTable = GDI_MapHandleTable(GdiTableSection, Process);
|
||||
Process->Peb->GdiDCAttributeList = 5;
|
||||
}
|
||||
|
||||
/* setup process flags */
|
||||
|
|
Loading…
Reference in a new issue