:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / drivers / dd / vga / display / main / gdiinfo.h
1 #include "../vgaddi.h"
2
3 GDIINFO gaulCap = {
4   GDI_DRIVER_VERSION,
5   DT_RASDISPLAY,         // ulTechnology
6   0,                     // ulHorzSize
7   0,                     // ulVertSize
8   0,                     // ulHorzRes (filled in at initialization)
9   0,                     // ulVertRes (filled in at initialization)
10   4,                     // cBitsPixel
11   1,                     // cPlanes
12   16,                    // ulNumColors
13   0,                     // flRaster (DDI reserved field)
14
15   0,                     // ulLogPixelsX (filled in at initialization)
16   0,                     // ulLogPixelsY (filled in at initialization)
17
18   TC_RA_ABLE | TC_SCROLLBLT,  // flTextCaps
19
20   6,                     // ulDACRed
21   6,                     // ulDACGree
22   6,                     // ulDACBlue
23
24   0x0024,                // ulAspectX  (one-to-one aspect ratio)
25   0x0024,                // ulAspectY
26   0x0033,                // ulAspectXY
27
28   1,                     // xStyleStep
29   1,                     // yStyleSte;
30   3,                     // denStyleStep
31
32   { 0, 0 },              // ptlPhysOffset
33   { 0, 0 },              // szlPhysSize
34
35   0,                     // ulNumPalReg (win3.1 16 color drivers say 0 too)
36
37 // These fields are for halftone initialization.
38
39   {                                         // ciDevice, ColorInfo
40     { 6700, 3300, 0 },                      // Red
41     { 2100, 7100, 0 },                      // Green
42     { 1400,  800, 0 },                      // Blue
43     { 1750, 3950, 0 },                      // Cyan
44     { 4050, 2050, 0 },                      // Magenta
45     { 4400, 5200, 0 },                      // Yellow
46     { 3127, 3290, 0 },                      // AlignmentWhite
47     20000,                                  // RedGamma
48     20000,                                  // GreenGamma
49     20000,                                  // BlueGamma
50     0, 0, 0, 0, 0, 0
51   },
52
53   0,                                         // ulDevicePelsDPI
54   PRIMARY_ORDER_CBA,                         // ulPrimaryOrder
55   HT_PATSIZE_4x4_M,                          // ulHTPatternSize
56   HT_FORMAT_4BPP_IRGB,                       // ulHTOutputFormat
57   HT_FLAG_ADDITIVE_PRIMS,                    // flHTFlags
58
59   0,                                         // ulVRefresh
60   8,                                         // ulBltAlignment
61   0,                                         // ulPanningHorzRes
62   0,                                         // ulPanningVertRes
63 };
64
65 // Palette for VGA
66
67 typedef struct _VGALOGPALETTE
68 {
69    USHORT ident;
70    USHORT NumEntries;
71    PALETTEENTRY PaletteEntry[16];
72 } VGALOGPALETTE;
73
74 const VGALOGPALETTE VGApalette =
75 {
76
77 0x400,  // driver version
78 16,     // num entries
79 {
80   { 0x00, 0x00, 0x00, 0x00 }, // 0
81   { 0x80, 0x00, 0x00, 0x00 }, // 1
82   { 0x00, 0x80, 0x00, 0x00 }, // 2
83   { 0x80, 0x80, 0x00, 0x00 }, // 3
84   { 0x00, 0x00, 0x80, 0x00 }, // 4
85   { 0x80, 0x00, 0x80, 0x00 }, // 5
86   { 0x00, 0x80, 0x80, 0x00 }, // 6
87   { 0x80, 0x80, 0x80, 0x00 }, // 7
88   { 0xc0, 0xc0, 0xc0, 0x00 }, // 8
89   { 0xff, 0x00, 0x00, 0x00 }, // 9
90   { 0x00, 0xff, 0x00, 0x00 }, // 10
91   { 0xff, 0xff, 0x00, 0x00 }, // 11
92   { 0x00, 0x00, 0xff, 0x00 }, // 12
93   { 0xff, 0x00, 0xff, 0x00 }, // 13
94   { 0x00, 0xff, 0xff, 0x00 }, // 14
95   { 0xff, 0xff, 0xff, 0x00 } // 15
96 }
97 };
98
99 // Devinfo structure passed back to the engine in DrvEnablePDEV
100
101 #define SYSTM_LOGFONT {16,7,0,0,700,0,0,0,ANSI_CHARSET,OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,VARIABLE_PITCH | FF_DONTCARE, L"System"}
102 #define HELVE_LOGFONT {12,9,0,0,400,0,0,0,ANSI_CHARSET,OUT_DEFAULT_PRECIS,CLIP_STROKE_PRECIS,PROOF_QUALITY,VARIABLE_PITCH | FF_DONTCARE, L"MS Sans Serif"}
103 #define COURI_LOGFONT {12,9,0,0,400,0,0,0,ANSI_CHARSET,OUT_DEFAULT_PRECIS,CLIP_STROKE_PRECIS,PROOF_QUALITY,FIXED_PITCH | FF_DONTCARE, L"Courier"}
104
105 DEVINFO devinfoVGA =
106 {
107   (GCAPS_OPAQUERECT | GCAPS_HORIZSTRIKE | GCAPS_ALTERNATEFILL | GCAPS_MONO_DITHER | GCAPS_COLOR_DITHER |
108    GCAPS_WINDINGFILL | GCAPS_DITHERONREALIZE
109    ),       // Graphics capabilities
110
111   SYSTM_LOGFONT,  // Default font description
112   HELVE_LOGFONT,  // ANSI variable font description
113   COURI_LOGFONT,  // ANSI fixed font description
114   0,              // Count of device fonts
115   BMF_4BPP,       // preferred DIB format
116   8,              // Width of color dither
117   8,              // Height of color dither
118   0               // Default palette to use for this device
119 };