From e07c9eee03a462e67f60164decddeed24c659922 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 27 Nov 2021 08:04:30 +0000 Subject: [PATCH] Fix chat message overlap in CJK --- Source/plrmsg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/plrmsg.cpp b/Source/plrmsg.cpp index 33f760b3a..5ae8863cc 100644 --- a/Source/plrmsg.cpp +++ b/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); 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