mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 02:13:29 +00:00
Add some type definitions and macros for gdi object entries. Needed for upcoming gdiobj patch.
svn path=/trunk/; revision=27817
This commit is contained in:
parent
e4aff98165
commit
9a5a65a65b
|
@ -28,6 +28,12 @@
|
|||
#define GDI_HANDLE_UPPER_MASK (GDI_HANDLE_TYPE_MASK|GDI_HANDLE_STOCK_MASK|GDI_HANDLE_REUSE_MASK)
|
||||
#define GDI_HANDLE_REUSECNT_SHIFT 24
|
||||
|
||||
#define GDI_ENTRY_STOCK_MASK 0x00000080
|
||||
#define GDI_ENTRY_REUSE_MASK 0x0000ff00
|
||||
#define GDI_ENTRY_REUSE_INC 0x00000100
|
||||
#define GDI_ENTRY_REUSECNT_SHIFT 8
|
||||
#define GDI_ENTRY_UPPER_SHIFT 16
|
||||
|
||||
/*! \defgroup GDI object types
|
||||
*
|
||||
* GDI object types
|
||||
|
@ -74,6 +80,16 @@
|
|||
#define GDI_HANDLE_SET_STOCKOBJ(h) \
|
||||
((h) = (HANDLE)(((ULONG_PTR)(h)) | GDI_HANDLE_STOCK_MASK))
|
||||
|
||||
#define GDI_HANDLE_GET_UPPER(h) \
|
||||
(((ULONG_PTR)(h)) & GDI_HANDLE_UPPER_MASK)
|
||||
|
||||
#define GDI_HANDLE_GET_REUSECNT(h) \
|
||||
(((ULONG_PTR)(h)) >> GDI_HANDLE_REUSECNT_SHIFT)
|
||||
|
||||
#define GDI_ENTRY_GET_REUSECNT(e) \
|
||||
((((ULONG_PTR)(e)) & GDI_ENTRY_REUSE_MASK) >> GDI_ENTRY_REUSECNT_SHIFT)
|
||||
|
||||
|
||||
/* DC_ATTR Dirty Flags */
|
||||
#define DIRTY_FILL 0x00000001
|
||||
#define DIRTY_LINE 0x00000002
|
||||
|
|
Loading…
Reference in a new issue