RGB and BGR

Hi

all colors in my games are inversed. (instead of red - blue).
i believe it is RGB or BGR case, but where in SDL the best place
to change it?

whose code is at fault? are those games coded right? we can’t tell since we have no idea what games you mean.

What OS? What CPU?

try the latest cvs of SDL if you can, straight from cvs if you can, or else a snapshot.
at least make sure you have the latest release if you don’t want to try cvs stuff right away.

check SDL_byteorder.h and make sure that your platform is getting the correct Endian #define set…
if not you will probably need to add another “|| defined(THING)” into the test(…or remove one!?)
send in a list of compiler defines that are present in your compiler
something like: gcc -E -dM - < /dev/null
would work for the gcc compiler.

report any findings that fix your problem, so that SDL can be updated if needed.

bertold wrote:> Hi

all colors in my games are inversed. (instead of red - blue).
i believe it is RGB or BGR case, but where in SDL the best place
to change it?