mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:02:56 +00:00
Move W structure back into dc.h and added the clip object for dcobj.
svn path=/trunk/; revision=33655
This commit is contained in:
parent
62413f7a09
commit
f5aa4b5c0c
2 changed files with 57 additions and 46 deletions
|
@ -318,49 +318,5 @@ typedef struct _FONT_ATTR
|
||||||
void *pCharWidthData;
|
void *pCharWidthData;
|
||||||
} FONT_ATTR, *PFONT_ATTR;
|
} FONT_ATTR, *PFONT_ATTR;
|
||||||
|
|
||||||
typedef enum tagGdiPathState
|
|
||||||
{
|
|
||||||
PATH_Null,
|
|
||||||
PATH_Open,
|
|
||||||
PATH_Closed
|
|
||||||
} GdiPathState;
|
|
||||||
|
|
||||||
typedef struct tagGdiPath
|
|
||||||
{
|
|
||||||
GdiPathState state;
|
|
||||||
POINT *pPoints;
|
|
||||||
BYTE *pFlags;
|
|
||||||
int numEntriesUsed, numEntriesAllocated;
|
|
||||||
BOOL newStroke;
|
|
||||||
} GdiPath;
|
|
||||||
|
|
||||||
typedef struct _WIN_DC_INFO
|
|
||||||
{
|
|
||||||
int flags;
|
|
||||||
|
|
||||||
HRGN hClipRgn; /* Clip region (may be 0) */
|
|
||||||
HRGN hrgnMeta; /* Meta region (may be 0) */
|
|
||||||
HRGN hMetaClipRgn; /* Intersection of meta and clip regions (may be 0) */
|
|
||||||
HRGN hVisRgn; /* Should me to DC. Visible region (must never be 0) */
|
|
||||||
|
|
||||||
HRGN hGCClipRgn; /* GC clip region (ClipRgn AND VisRgn) */
|
|
||||||
HBITMAP hBitmap;
|
|
||||||
HBITMAP hFirstBitmap; /* Bitmap selected at creation of the DC */
|
|
||||||
|
|
||||||
/* #if 0 */
|
|
||||||
GdiPath path;
|
|
||||||
/* #endif */
|
|
||||||
|
|
||||||
RECT totalExtent;
|
|
||||||
BYTE bitsPerPixel;
|
|
||||||
|
|
||||||
INT DCOrgX; /* DC origin */
|
|
||||||
INT DCOrgY;
|
|
||||||
|
|
||||||
XFORM xformWorld2Wnd; /* World-to-window transformation */
|
|
||||||
XFORM xformWorld2Vport; /* World-to-viewport transformation */
|
|
||||||
XFORM xformVport2World; /* Inverse of the above transformation */
|
|
||||||
BOOL vport2WorldValid; /* Is xformVport2World valid? */
|
|
||||||
} WIN_DC_INFO;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -38,6 +38,61 @@
|
||||||
|
|
||||||
/* Type definitions ***********************************************************/
|
/* Type definitions ***********************************************************/
|
||||||
|
|
||||||
|
typedef enum tagGdiPathState
|
||||||
|
{
|
||||||
|
PATH_Null,
|
||||||
|
PATH_Open,
|
||||||
|
PATH_Closed
|
||||||
|
} GdiPathState;
|
||||||
|
|
||||||
|
typedef struct tagGdiPath
|
||||||
|
{
|
||||||
|
GdiPathState state;
|
||||||
|
POINT *pPoints;
|
||||||
|
BYTE *pFlags;
|
||||||
|
int numEntriesUsed, numEntriesAllocated;
|
||||||
|
BOOL newStroke;
|
||||||
|
} GdiPath;
|
||||||
|
|
||||||
|
typedef struct _WIN_DC_INFO
|
||||||
|
{
|
||||||
|
int flags;
|
||||||
|
|
||||||
|
HRGN hClipRgn; /* Clip region (may be 0) */
|
||||||
|
HRGN hrgnMeta; /* Meta region (may be 0) */
|
||||||
|
HRGN hMetaClipRgn; /* Intersection of meta and clip regions (may be 0) */
|
||||||
|
HRGN hVisRgn; /* Should me to DC. Visible region (must never be 0) */
|
||||||
|
|
||||||
|
HRGN hGCClipRgn; /* GC clip region (ClipRgn AND VisRgn) */
|
||||||
|
HBITMAP hBitmap;
|
||||||
|
HBITMAP hFirstBitmap; /* Bitmap selected at creation of the DC */
|
||||||
|
|
||||||
|
/* #if 0 */
|
||||||
|
GdiPath path;
|
||||||
|
/* #endif */
|
||||||
|
|
||||||
|
RECT totalExtent;
|
||||||
|
BYTE bitsPerPixel;
|
||||||
|
|
||||||
|
INT DCOrgX; /* DC origin */
|
||||||
|
INT DCOrgY;
|
||||||
|
|
||||||
|
XFORM xformWorld2Wnd; /* World-to-window transformation */
|
||||||
|
XFORM xformWorld2Vport; /* World-to-viewport transformation */
|
||||||
|
XFORM xformVport2World; /* Inverse of the above transformation */
|
||||||
|
BOOL vport2WorldValid; /* Is xformVport2World valid? */
|
||||||
|
} WIN_DC_INFO;
|
||||||
|
|
||||||
|
typedef struct _XCLIPOBJ
|
||||||
|
{
|
||||||
|
CLIPOBJ co; // Std Clip object.
|
||||||
|
DWORD Unknown[6];
|
||||||
|
PVOID pClipRgn; // prgnRao_ or (prgnVis_ if (prgnRao_ == z))
|
||||||
|
DWORD Unknown1[16];
|
||||||
|
DWORD nComplexity; // count/mode based on # of rect in regions scan.
|
||||||
|
DWORD Unknown2;
|
||||||
|
} XCLIPOBJ, *PXCLIPOBJ;
|
||||||
|
|
||||||
typedef struct _DCLEVEL
|
typedef struct _DCLEVEL
|
||||||
{
|
{
|
||||||
HPALETTE hpal;
|
HPALETTE hpal;
|
||||||
|
@ -113,7 +168,7 @@ typedef struct _DC
|
||||||
FLONG flSimulationFlags;
|
FLONG flSimulationFlags;
|
||||||
LONG lEscapement;
|
LONG lEscapement;
|
||||||
PVOID prfnt; // RFONT*
|
PVOID prfnt; // RFONT*
|
||||||
unsigned co_[31]; // CLIPOBJ
|
XCLIPOBJ co; // CLIPOBJ
|
||||||
PVOID pPFFList; // PPFF*
|
PVOID pPFFList; // PPFF*
|
||||||
PVOID ClrxFormLnk;
|
PVOID ClrxFormLnk;
|
||||||
INT ipfdDevMax;
|
INT ipfdDevMax;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue