BOOL DrvSetPalette(
IN DHPDEV dhpdev, | |
IN PALOBJ *ppalo, | |
IN FLONG fl, | |
IN ULONG iStart, | |
IN ULONG cColors | |
); |
DrvSetPalette requests that the driver realize the palette for a specified device. The driver sets the hardware palette to match the entries in the given palette as closely as possible.
Value |
Meaning |
SP_DEFAULT |
The palette is the device’s complete default palette. The PALOBJ can be ignored, but contains the correct contents. |
The return value is TRUE if the function is successful. Otherwise, it is FALSE, and an error code is logged.
Only indexed palettes are realizeable. The RC_PALETTE bit of the flRasterCaps member of the GDIINFO structure specifies whether a device has a realizeable palette.
DrvSetPalette is required for display drivers that support realizeable palettes.