Fix when you open chat on mobile webclient in horizontal orientation on some devices, chat stays scaled too small after the soft input keyboard is closed

This commit is contained in:
UnknownShadow200 2020-11-02 00:51:10 +11:00
parent 4cefb4781a
commit 201ba9ce47

View File

@ -795,7 +795,7 @@ static cc_bool ChatScreen_ChatUpdateFont(struct ChatScreen* s) {
Math_Clamp(size, 8, 60);
/* don't recreate font if possible */
if (size == s->chatFont.size) return false;
if (Display_ScaleY(size) == s->chatFont.size) return false;
ChatScreen_FreeChatFonts(s);
Drawer2D_MakeFont(&s->chatFont, size, FONT_FLAGS_NONE);