mirror of
https://github.com/reactos/reactos.git
synced 2025-07-16 07:24:06 +00:00
[NtGDI]
- Allocate initial entries for paths. svn path=/trunk/; revision=72529
This commit is contained in:
parent
170bf20513
commit
27e451c99f
1 changed files with 5 additions and 0 deletions
|
@ -2417,6 +2417,11 @@ NtGdiBeginPath(HDC hDC)
|
|||
/* Make sure that path is empty */
|
||||
PATH_EmptyPath(pPath);
|
||||
|
||||
pPath->numEntriesAllocated = NUM_ENTRIES_INITIAL;
|
||||
|
||||
pPath->pPoints = (POINT *)ExAllocatePoolWithTag(PagedPool, NUM_ENTRIES_INITIAL * sizeof(POINT), TAG_PATH);
|
||||
pPath->pFlags = (BYTE *)ExAllocatePoolWithTag(PagedPool, NUM_ENTRIES_INITIAL * sizeof(BYTE), TAG_PATH);
|
||||
|
||||
/* Initialize variables for new path */
|
||||
pPath->newStroke = TRUE;
|
||||
pPath->state = PATH_Open;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue