mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-10 16:03:15 -04:00
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:
parent
4cefb4781a
commit
201ba9ce47
@ -795,7 +795,7 @@ static cc_bool ChatScreen_ChatUpdateFont(struct ChatScreen* s) {
|
|||||||
Math_Clamp(size, 8, 60);
|
Math_Clamp(size, 8, 60);
|
||||||
|
|
||||||
/* don't recreate font if possible */
|
/* 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);
|
ChatScreen_FreeChatFonts(s);
|
||||||
Drawer2D_MakeFont(&s->chatFont, size, FONT_FLAGS_NONE);
|
Drawer2D_MakeFont(&s->chatFont, size, FONT_FLAGS_NONE);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user