SDL_ttf: Red / Blue color swapover under Windows?

Hello; I’ve run across this problem in two SDL applications now: one written
in C, the other in Ruby using RUDL. In short, when I specify colours to
SDL_ttf to print fonts in different colours, the red and blue components
appear swapped over under Windows (as opposed to Linux where they appear as
expected, both x86 platforms). I’ve not had time to look deeply into
this, but I wonder if this is an acknowledged problem that has been dealt
with in later versions of the software? If nobody is aware of this I’ll come
back with a test case and version numbers, but just on the offchance, has
anyone got any ideas?–
Matthew > http://www.soup-kitchen.net/
> ICQ 19482073

Hello; I’ve run across this problem in two SDL applications now: one written
in C, the other in Ruby using RUDL. In short, when I specify colours to
SDL_ttf to print fonts in different colours, the red and blue components
appear swapped over under Windows (as opposed to Linux where they appear as
expected, both x86 platforms). I’ve not had time to look deeply into
this, but I wonder if this is an acknowledged problem that has been dealt
with in later versions of the software? If nobody is aware of this I’ll come
back with a test case and version numbers, but just on the offchance, has
anyone got any ideas?

I don’t know of a problem with this… go ahead and submit a test case.
Make sure you’re using the latest released versions of SDL and SDL_ttf.

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Hello; I’ve run across this problem in two SDL applications now: one written
in C, the other in Ruby using RUDL. In short, when I specify colours to
SDL_ttf to print fonts in different colours, the red and blue components
appear swapped over under Windows (as opposed to Linux where they appear as
expected, both x86 platforms). I’ve not had time to look deeply into

This bug was present in SDL_ttf 2.0.3 (and presumably earlier). The red
and blue channels are swapped. Luckily though, versions after 2.0.3 are
fixed. Probably the version of SDL_ttf on your windows box is older
than your linux. Just make sure both are 2.0.5.

(sorry about the wierd reply to a reply, but I can’t seem to find the
original question in my history.)

_______________________________________________

SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

End of Rant.

Jimmy
Jimmy’s World (http://www.jimmysworld.org)
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020429/676a72af/attachment.pgp