Hello,
I am using the SDL_TTF library and I have noticed something strange:
In my source, I declare a variable like this
SDL_Color color = { 0xFF, 0xDB, 0x0A, 0 };
and I am using the TTF_RenderText_Shaded in order to print out
a string on the screen surface.
When using the TTF_RenderText_Blended in order to print out
the same string, the color is different, and I must invert
the red and blue component in order to obtain the correct result.
In order not to modify my color variable, should I check
the PixelFormat of my back buffer surface and eventually
convert it to the screen surface before blitting it or is it
a normal behavior ??
I am using SDL 1.2.1 and SDL_TTF 2.0.3 on top of XFree 4.1.0.
Thanks in advance,
Damien.