Blitting a palettized surface to a none palettized surface
-
I have created a palettized (256 color entries) directdraw off-screen surface. And a none palettized directdraw primary surface. I would like to blit the palettized surface to the none palettized surface while maintaining the color information present in the palettized surface. The cooperation level is set to DDSCL_NORMAL. I have attached a clipper to the primary surface and I have attached a palette to the off-screen surface. This construction does not work! And the directdraw documentation gives me the awnser why not: "It is important to note that DirectDraw blits never perform color conversion; any palettes attached to the source or destination surface of a blit are ignored" Is their any solution to this problem without having to do the color conversion yourself? It would be a lot less complicated!! Thanks :cool: