After getting my game updated and running again, I came across this strange problem: I can dispaly just about all my menu options with the exception of the last two: The last string shows one strange character while the 2nd string in MENU_LINE array shows several strange characters.. but the first two are perfect. Here is a link to the program files
http://pntbalg.shackspace.com/GeorgeLair/052606.. just download all those files (both ttf's do the same thing), and type make in a terminal. I did a seperate small program which just does the string to char control structures... and it works just without the problem described above. I did a gdb on the program and the only error I see is when I send in strings to display_font(). Here is the gdb output...
Code:
(gdb) s
main (nNumberofArgs=1, pszArgs=0xbf8e1a34) at main.cpp:104
104 for(int MENU_DONE = 0, TXT_PLACE = 10;
(gdb) s
108 display_font(10, TXT_PLACE, 18, 255, 0, 255, MENU_LINE[MENU_DONE]);
(gdb) s
display_font (x2=10, y2=100, Psize=18, R=255, G=0, B=255, OUTMESS=
{static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<cha
r>> = {<No data fields>}, <No data fields>}, _M_p = 0x807204c "Quit"}}) at gSDL.cpp:12
12 {
(gdb) s
14 font=TTF_OpenFont("couri.ttf", Psize);
This is the same result for all the strings, but if this was the problem, then all of them should be acting funky. Any ideas?
... the string to char conversion little program is located in the same directory. Thanks in advance.