The DirectDrawSurface object is not using an 8-bit color palette and the requested operation requires an 8-bit color palette.