From 741e32d84d2c7d51fd89512313e341bfe62c8ba4 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Thu, 13 Dec 2007 08:51:02 +0000 Subject: [PATCH] Add device caps and width data structures. svn path=/trunk/; revision=31190 --- reactos/include/reactos/win32k/ntgdityp.h | 50 ++++++++++++++++++++++- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/reactos/include/reactos/win32k/ntgdityp.h b/reactos/include/reactos/win32k/ntgdityp.h index a3e562ca206..b38c346dfa9 100644 --- a/reactos/include/reactos/win32k/ntgdityp.h +++ b/reactos/include/reactos/win32k/ntgdityp.h @@ -129,10 +129,56 @@ typedef D3DNTHAL_CONTEXTCREATEDATA D3DNTHAL_CONTEXTCREATEI; typedef LONG FIX; /* FIXME: Unknown; easy to guess, usually based on public types and converted */ -typedef struct _WIDTHDATA WIDTHDATA, *PWIDTHDATA; -typedef struct _DEVCAPS DEVCAPS, *PDEVCAPS; typedef struct _REALIZATION_INFO REALIZATION_INFO, *PREALIZATION_INFO; +typedef struct _WIDTHDATA +{ + USHORT sOverhang; + USHORT sHeight; + USHORT sCharInc; + USHORT sBreak; + BYTE jFirst; + BYTE jLast; + BYTE jBreak; + BYTE jDefault; + USHORT sDBCSInc; + USHORT sDefaultInc; +} WIDTHDATA, *PWIDTHDATA; + +typedef struct _DEVCAPS // Very similar to GDIINFO +{ + ULONG ulVersion; + ULONG ulTechnology; + ULONG ulHorzSizeM; + ULONG ulVertSizeM; + ULONG ulHorzSize; + ULONG ulVertSize; + ULONG ulHorzRes; + ULONG ulVertRes; + ULONG ulBitsPixel; + ULONG ulPlanes; + ULONG ulNumPens; + ULONG ulNumFonts; + ULONG ulNumColors; + ULONG ulRasterCaps; + ULONG ulAspectX; + ULONG ulAspectY; + ULONG ulAspectXY; + ULONG ulLogPixelsX; + ULONG ulLogPixelsY; + ULONG ulSizePalette; + ULONG ulColorRes; + ULONG ulPhysicalWidth; + ULONG ulPhysicalHeight; + ULONG ulPhysicalOffsetX; + ULONG ulPhysicalOffsetY; + ULONG ulTextCaps; + ULONG ulVRefresh; + ULONG ulDesktopHorzRes; + ULONG ulDesktopVertRes; + ULONG ulBltAlignment; +} DEVCAPS, *PDEVCAPS; + /* Font Structures */ typedef struct _TMDIFF {