Hi! I'm adding support for scrollable text in my GUI system and, apparently, the E2DSurface::PrepareFontWrap method is not giving me correct results. More specifically, the output string has fewer characters than the original one.
I've made a very simple example in order to reproduce the error:
After executing PrepareFontWrap, wszAuxBuffer contains the following text: "Welcome to th\n*OPTION A: \n* OPTION B: Do something else.\n".
Any idea on where should I look into in order to solve this problem?
Thanks in advance,
--Nacho
I've made a very simple example in order to reproduce the error:
- Code:
wchar_t wszAuxBuffer[1024] = {0};
std::wstring wMsg = L"Welcome to this building:\n"
L"* OPTION A: Do something.\n"
L"* OPTION B: Do something else.\n";
display->fontinternal.PrepareFontWrap((unsigned short*)wszAuxBuffer,
(unsigned short*)(wMsg.c_str()),389);
After executing PrepareFontWrap, wszAuxBuffer contains the following text: "Welcome to th\n*OPTION A: \n* OPTION B: Do something else.\n".
Any idea on where should I look into in order to solve this problem?
Thanks in advance,
--Nacho