Microsoft DirectX 9.0

CImagePalette::ShouldUpdate

The ShouldUpdate method determines whether it is necessary to create a new palette.

Syntax

BOOL ShouldUpdate(
    const VIDEOINFOHEADER *pNewInfo,
    const VIDEOINFOHEADER *pOldInfo
);

Parameters

pNewInfo

Pointer to a VIDEOINFOHEADER structure containing the new color table.

pOldInfo

Pointer to a VIDEOINFOHEADER structure containing the old color table. This parameter can be NULL.

Return Value

Returns TRUE if the palette needs to be updated, or FALSE otherwise.

Remarks

See Also