Fix chat message overlap in CJK
This commit is contained in:
parent
1b8939d70c
commit
e07c9eee03
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue