Logical and physical palette

I didn’t fully undersatnd the difference between the two and, most of all,
when I need to change only one of the two. Can you explain, possibly with
some examples?
Thanx in advance.–
Marco Iannaccone @Marco_Iannaccone
ICQ: 18748121 MetalCoder

"What is real? How do you define real? If you’re talking about your
senses, what you feel, taste, smell, or see, then all you’re talking about
are electrical signals interpreted by your brain."
Morpheus - The Matrix

I didn’t fully undersatnd the difference between the two and, most of all,
when I need to change only one of the two. Can you explain, possibly with
some examples?

Yorick wrote the code and is MIA, but the logical palette is the one used
in blits, and the physical palette is the one that is used to display the
"screen" surface.

You can see an example of this in the testpalette program in the test
directory.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software