Go to the source code of this file.
◆ VGALOGPALETTE
◆ bInit256ColorPalette()
Definition at line 226 of file palette.c.
227{
230 ULONG ulReturnedDataLength;
233
235 {
236
237
238
239
243
244
245
246
247
248 cColors = 256;
250
251 while(cColors--)
252 {
253 pScreenClutData[cColors].
Red = ppdev->
pPal[cColors].
peRed >>
259 pScreenClutData[cColors].
Unused = 0;
260 }
261
262
263
264
265
266 if (EngDeviceIoControl(ppdev->
hDriver,
268 pScreenClut,
271 0,
272 &ulReturnedDataLength))
273 {
274 DISPDBG((0,
"Failed bEnablePalette"));
276 }
277 }
278
279 DISPDBG((5,
"Passed bEnablePalette"));
280
282}
#define IOCTL_VIDEO_SET_COLOR_REGISTERS
struct VIDEO_CLUT * PVIDEO_CLUT
struct _VIDEO_CLUTDATA * PVIDEO_CLUTDATA
union VIDEO_CLUT::@3171 LookupTable[1]
Referenced by DrvEnableSurface().
◆ bInitDefaultPalette()
Definition at line 107 of file palette.c.
108{
109
110#if 0
112 {
115
116
117
118
119
122
124 RIP(
"DISP bInitDefaultPalette() failed EngAllocMem\n");
126 }
127
128
129
130
131
132 jRed = jGre = jBlu = 0;
133
134 for (ulLoop = 0; ulLoop < 256; ulLoop++)
135 {
140
141 if (!(jRed += 32))
142 if (!(jGre += 32))
143 jBlu += 64;
144 }
145
146
147
148
149
150
151
152 for (ulLoop = 0; ulLoop < 10; ulLoop++)
153 {
154
155
156
157
159
160
161
162
163
165 }
166
167#endif
168
169
170
171
172
175
176 16,
178
179 0,0,0);
180
182 {
183 RIP(
"DISP bInitDefaultPalette failed EngCreatePalette\n");
184
185
186
188 }
189
190
191
192
193
195
196
197#if 0
198 } else {
199
206
208 {
209 RIP(
"DISP bInitDefaultPalette failed EngCreatePalette\n");
211 }
212 }
213
215#endif
216
217}
void * EngAllocMem(int zero, unsigned long size, int tag=0)
PALETTEENTRY palPalEntry[16]
const PALETTEENTRY BASEPALETTE[20]
const VGALOGPALETTE logPalVGA
_Must_inspect_result_ ENGAPI HPALETTE APIENTRY EngCreatePalette(_In_ ULONG iMode, _In_ ULONG cColors, _In_ ULONG *pulColors, _In_ FLONG flRed, _In_ FLONG flGreen, _In_ FLONG flBlue)
struct tagPALETTEENTRY * PPALETTEENTRY
Referenced by bInitPaletteInfo().
◆ bInitPaletteInfo()
Definition at line 67 of file palette.c.
68{
71
73}
BOOL bInitDefaultPalette(PPDEV ppdev, DEVINFO *pDevInfo)
Referenced by DrvEnablePDEV().
◆ DrvSetPalette()
Definition at line 291 of file palette.c.
297{
302
304
305 ppdev = (
PDEV*) dhpdev;
306
307
308
309
310
314
316
318 (
ULONG*) pScreenClutData))
319 {
320 DISPDBG((0,
"DrvSetPalette failed PALOBJ_cGetColors\n"));
322 }
323
324
325
326
327
328
330 {
331 while(cColors--)
332 {
336 pScreenClutData[cColors].
Unused = 0;
337 }
338 }
339 else
340 {
341 while(cColors--)
342 {
343 pScreenClutData[cColors].
Unused = 0;
344 }
345 }
346
347
348
349
350
351 if (EngDeviceIoControl(ppdev->
hDriver,
353 pScreenClut,
356 0,
357 &cColors))
358 {
359 DISPDBG((0,
"DrvSetPalette failed EngDeviceIoControl\n"));
361 }
362
364
365}
#define UNREFERENCED_PARAMETER(P)
ENGAPI ULONG APIENTRY PALOBJ_cGetColors(_In_ PALOBJ *ppalo, _In_ ULONG iStart, _In_ ULONG cColors, _Out_writes_(cColors) ULONG *pulColors)
◆ vDisablePalette()
Definition at line 82 of file palette.c.
83{
84
85
87 {
90 }
91
92
93#if 0
96#endif
97
98}
ENGAPI BOOL APIENTRY EngDeletePalette(_In_ _Post_ptr_invalid_ HPALETTE hpal)
Referenced by DrvDisablePDEV().
◆ logPalVGA
Initial value:=
{
0x400,
16,
{
{ 0, 0, 0, 0 },
{ 0x80,0, 0, 0 },
{ 0, 0x80,0, 0 },
{ 0x80,0x80,0, 0 },
{ 0, 0, 0x80,0 },
{ 0x80,0, 0x80,0 },
{ 0, 0x80,0x80,0 },
{ 0x80,0x80,0x80,0 },
{ 0xC0,0xC0,0xC0,0 },
{ 0xFF,0, 0, 0 },
{ 0, 0xFF,0, 0 },
{ 0xFF,0xFF,0, 0 },
{ 0, 0, 0xFF,0 },
{ 0xFF,0, 0xFF,0 },
{ 0, 0xFF,0xFF,0 },
{ 0xFF,0xFF,0xFF,0 }
}
}
Definition at line 29 of file palette.c.
Referenced by bInitDefaultPalette().