Go to the source code of this file.
◆ bInit256ColorPalette()
Definition at line 193 of file palette.c.
197 ULONG ulReturnedDataLength;
220 pScreenClutData[cColors].
Red = ppdev->
pPal[cColors].
peRed >>
226 pScreenClutData[cColors].
Unused = 0;
233 if (EngDeviceIoControl(ppdev->
hDriver,
239 &ulReturnedDataLength))
241 DISPDBG((0,
"Failed bEnablePalette"));
246 DISPDBG((5,
"Passed bEnablePalette"));
struct VIDEO_CLUT * PVIDEO_CLUT
union VIDEO_CLUT::@3124 LookupTable[1]
struct _VIDEO_CLUTDATA * PVIDEO_CLUTDATA
#define IOCTL_VIDEO_SET_COLOR_REGISTERS
◆ bInitDefaultPalette()
Definition at line 86 of file palette.c.
101 RIP(
"DISP bInitDefaultPalette() failed EngAllocMem\n");
109 jRed = jGre = jBlu = 0;
111 for (ulLoop = 0; ulLoop < 256; ulLoop++)
129 for (ulLoop = 0; ulLoop < 10; ulLoop++)
156 RIP(
"DISP bInitDefaultPalette failed EngCreatePalette\n");
178 RIP(
"DISP bInitDefaultPalette failed EngCreatePalette\n");
HPALETTE APIENTRY EngCreatePalette(ULONG iMode, ULONG cColors, ULONG *pulColors, ULONG flRed, ULONG flGreen, ULONG flBlue)
const PALETTEENTRY BASEPALETTE[20]
void * EngAllocMem(int zero, unsigned long size, int tag=0)
struct tagPALETTEENTRY * PPALETTEENTRY
Referenced by bInitPaletteInfo().
◆ bInitPaletteInfo()
Definition at line 50 of file palette.c.
BOOL NTAPI bInitDefaultPalette(PPDEV ppdev, DEVINFO *pDevInfo)
◆ DrvSetPalette()
Definition at line 258 of file palette.c.
272 ppdev = (
PDEV*) dhpdev;
285 (
ULONG*) pScreenClutData))
287 DISPDBG((0,
"DrvSetPalette failed PALOBJ_cGetColors\n"));
303 pScreenClutData[cColors].
Unused = 0;
310 pScreenClutData[cColors].
Unused = 0;
318 if (EngDeviceIoControl(ppdev->
hDriver,
326 DISPDBG((0,
"DrvSetPalette failed EngDeviceIoControl\n"));
#define UNREFERENCED_PARAMETER(P)
struct VIDEO_CLUT * PVIDEO_CLUT
ULONG APIENTRY PALOBJ_cGetColors(PALOBJ *PalObj, ULONG Start, ULONG Colors, ULONG *PaletteEntry)
union VIDEO_CLUT::@3124 LookupTable[1]
struct _VIDEO_CLUTDATA * PVIDEO_CLUTDATA
#define IOCTL_VIDEO_SET_COLOR_REGISTERS
◆ vDisablePalette()
Definition at line 65 of file palette.c.
BOOL APIENTRY EngDeletePalette(IN HPALETTE hpal)
◆ BASEPALETTE
Initial value:=
{
{ 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 },
{ 0xC0,0xC0,0xC0,0 },
{ 192, 220, 192, 0 },
{ 166, 202, 240, 0 },
{ 255, 251, 240, 0 },
{ 160, 160, 164, 0 },
{ 0x80,0x80,0x80,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 15 of file palette.c.