   Help need about SDL palettes
  Hello, I am making a game using SDL surfaces in 8 bit mode. I am giving each sprite a separate surface and not using a large sprite sheet. During initialization the screen and all the sprites are set with a palette. Now, I wanted to add fade effects, so I made a function to alter the palette of the screen. Unfortunately, when SDL adds my sprites to screen, it tries to find the closest matching colors. While this would usually be convenient, it isn't in my case. I wanted it to just copy the pixel data exactly, so that the when the sprites are blitted to the screen they will undergo the same transformation that I applied to the screen palette. The only solution I know of would be to change the palette of each sprite every time which is very inefficient.I hope this makes sense to someone. Thanks.   
  Is there a specific reason you need to run your game in 8-bit color?  If not, then use 16-/32-bit color and keep your images in 8-bit colors, and use SDL_DisplayFormat to convert it to a suitable 16-/32-bit color image.   ;  The reason is so that I can use palettes for manipulations.   