Increased in-game chat size. This makes it render more smoothly

Thanks to @ProditorMagnus for the suggestion.

(cherry picked from commit b1aa101009)
This commit is contained in:
Charles Dang 2018-05-06 16:50:59 +11:00
parent 1489f5fbd0
commit 2252896899

View file

@ -104,7 +104,7 @@ void display_chat_manager::add_chat_message(const std::time_t& time, const std::
try {
// We've had a joker who send an invalid utf-8 message to crash clients
// so now catch the exception and ignore the message.
msg = my_disp_.video().faked() ? "" : font::word_wrap_text(msg,font::SIZE_NORMAL,my_disp_.map_outside_area().w*3/4);
msg = my_disp_.video().faked() ? "" : font::word_wrap_text(msg,font::SIZE_15,my_disp_.map_outside_area().w*3/4);
} catch (utf8::invalid_utf8_exception&) {
ERR_NG << "Invalid utf-8 found, chat message is ignored." << std::endl;
return;