Browse Source

Fix chat message overlap in CJK

pull/3646/head
Gleb Mazovetskiy 4 years ago committed by Anders Jenbo
parent
commit
e07c9eee03
  1. 4
      Source/plrmsg.cpp

4
Source/plrmsg.cpp

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

Loading…
Cancel
Save