[SDL] Blitting on 8 bit surfaces

Christian Meyer tvgenial at web.de
Sun Dec 23 02:27:56 PST 2007


Thanks for your answer :)

In my spezial case, I have surfaces where some indices have a spezial 
meaning (e. g. marks areas where an animations will be displayed).

So if I understood this correctly, I have to do the following:

When all pixels with index n should be unchaged, I have to make sure, 
that n points to the same RGB-value in both palettes.

When the color of a pixel should be unchanged, I just have to make sure, 
that the RGB-Value exists in the dest palette.

Is this correct?

Thanks,
Christian M.




More information about the SDL mailing list