Fix chat message overlap in CJK

This commit is contained in:
Gleb Mazovetskiy 2021-11-27 08:04:30 +00:00 committed by Anders Jenbo
commit e07c9eee03

View file

@ -33,8 +33,8 @@ void PrintChatMessage(const Surface &out, int x, int y, int width, char *textPtr
{
const size_t length = strlen(textPtr);
std::replace(textPtr, textPtr + length, '\n', ' ');
const string_view text{textPtr, length};
DrawString(out, WordWrapString(text, width), { { x, y }, { width, 0 } }, style, 1, 10);
const string_view text { textPtr, length };
DrawString(out, WordWrapString(text, width), { { x, y }, { width, 0 } }, style, 1, 18);
}
} // namespace