mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 14:18:41 +00:00
![Amine Khaldi](/assets/img/avatar_default.png)
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
36 lines
1.3 KiB
C
36 lines
1.3 KiB
C
#pragma once
|
|
|
|
#ifndef CLR_INVALID
|
|
#define CLR_INVALID 0xffffffff
|
|
#endif
|
|
#define PC_SYS_USED 0x80 /* Palentry is used (both system and logical) */
|
|
#define PC_SYS_RESERVED 0x40 /* System palentry is not to be mapped to */
|
|
#define PC_SYS_MAPPED 0x10 /* Logical palentry is a direct alias for system palentry */
|
|
|
|
#define NB_RESERVED_COLORS 20 /* Number of fixed colors in system palette */
|
|
|
|
typedef struct _COLORSPACE
|
|
{
|
|
BASEOBJECT BaseObject;
|
|
LOGCOLORSPACEW lcsColorSpace;
|
|
DWORD dwFlags;
|
|
} COLORSPACE, *PCOLORSPACE;
|
|
|
|
|
|
#define COLORSPACEOBJ_AllocCS() ((PCOLORSPACE) GDIOBJ_AllocObj(GDIObjType_ICMLCS_TYPE))
|
|
#define COLORSPACEOBJ_AllocCSWithHandle() ((PCOLORSPACE) GDIOBJ_AllocObjWithHandle(GDI_OBJECT_TYPE_COLORSPACE, sizeof(COLORSPACE)))
|
|
#define COLORSPACEOBJ_FreeCS(pCS) GDIOBJ_FreeObj((POBJ)pCS, GDIObjType_ICMLCS_TYPE)
|
|
#define COLORSPACEOBJ_FreeCSByHandle(hCS) GDIOBJ_FreeObjByHandle((HGDIOBJ)hCS, GDI_OBJECT_TYPE_COLORSPACE)
|
|
#define COLORSPACEOBJ_LockCS(hCS) ((PCOLORSPACE)GDIOBJ_LockObject((HGDIOBJ)hCS, GDIObjType_ICMLCS_TYPE))
|
|
#define COLORSPACEOBJ_UnlockCS(pCS) GDIOBJ_vUnlockObject((POBJ)pCS)
|
|
|
|
typedef struct _COLORTRANSFORMOBJ
|
|
{
|
|
BASEOBJECT BaseObject;
|
|
HANDLE hColorTransform;
|
|
} GDICLRXFORM, COLORTRANSFORMOBJ, *PCOLORTRANSFORMOBJ;
|
|
|
|
extern HCOLORSPACE hStockColorSpace;
|
|
|
|
UINT FASTCALL IntGdiRealizePalette (HDC);
|