Win32k GDI Compatibility Project:

- Add new Gdi user data structure
- Fixed Meta constants
- Add new GetDCWord constant

svn path=/trunk/; revision=24551
This commit is contained in:
James Tabor
2006-10-17 04:32:18 +00:00
parent 7c42b991f3
commit 6dc593f684
3 changed files with 26 additions and 4 deletions
+1 -1
View File
@@ -422,7 +422,7 @@ NtGdiGdiComment (
CONST LPBYTE Data
);
/* Should be done in user-mode. */
/* Should be NtGdiFlush. */
BOOL STDCALL NtGdiGdiFlush (VOID);
/* Should be done in user-mode. */
+24 -3
View File
@@ -43,10 +43,10 @@
#define GDI_OBJECT_TYPE_PEN 0x00300000
#define GDI_OBJECT_TYPE_EXTPEN 0x00500000
#define GDI_OBJECT_TYPE_COLORSPACE 0x00090000
#define GDI_OBJECT_TYPE_METADC 0x00660000
#define GDI_OBJECT_TYPE_METAFILE 0x00260000
#define GDI_OBJECT_TYPE_ENHMETAFILE 0x00460000
/* Following object types made up for ROS */
#define GDI_OBJECT_TYPE_METADC 0x00710000
#define GDI_OBJECT_TYPE_METAFILE 0x00720000
#define GDI_OBJECT_TYPE_ENHMETAFILE 0x00730000
#define GDI_OBJECT_TYPE_ENHMETADC 0x00740000
#define GDI_OBJECT_TYPE_MEMDC 0x00750000
#define GDI_OBJECT_TYPE_DCE 0x00770000
@@ -84,4 +84,25 @@ typedef struct _GDI_TABLE_ENTRY
PVOID UserData; /* Points to the user mode structure, usually NULL though */
} GDI_TABLE_ENTRY, *PGDI_TABLE_ENTRY;
typedef struct _GDI_USER_DATA
{
COLORREF PenColor;
COLORREF BrushColor;
INT ROPmode;
INT PolyFillMode;
INT StretchBltMode;
INT BackgroundMode;
COLORREF BackgroundColor;
COLORREF TextColor;
HCOLORSPACE ColorSpace;
INT TextAlign; /* Text alignment from SetTextAlign() */
INT CharExtra; /* Spacing from SetTextCharacterExtra() */
INT GraphicsMode; /* Graphics mode */
INT MapMode;
HFONT hFont;
DWORD Layout;
} GDI_USER_DATA, *PGDI_USER_DATA;
#endif
@@ -45,6 +45,7 @@ typedef enum _GETDCDWORD
{
GdiGetRelAbs = 1,
GdiGetArcDirection = 4,
GdiGetFontLanguageInfo = 6,
GdiGetIsMemDc = 7,
} GETDCDWORD, *PGETDCDWORD;