[GDI32]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 1 May 2010 13:02:46 +0000 (13:02 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 1 May 2010 13:02:46 +0000 (13:02 +0000)
commitf4fd1abac0c5ba778bfa2c7c815fa4e67c6a0a50
treea6fc32edc2af53d23d93b7120bc9dde5008e4855
parent18af76559c7d830268d70cf1c974ebe1a89077da
[GDI32]
- Fix pointer arithmetics in the gdi batch code (&pTeb->GdiTebBatch.Buffer[0] is a PULONG, but pTeb->GdiTebBatch.Offset is a byte offset)
- To prevent this from happening again, refactor the code to use one common routine GdiAllocBatchCommand to do most of the stuff.
- Reenable gdi batch for SelectObject
- Fixes gdi handle leak, causes some drawing problems in Acrobat reader, but those are less critical and I'll investigate those.

svn path=/trunk/; revision=47074
reactos/dll/win32/gdi32/include/gdi32p.h
reactos/dll/win32/gdi32/objects/dc.c
reactos/dll/win32/gdi32/objects/region.c