Always update chat message font

This commit is contained in:
Agent X 2024-03-23 10:26:02 -04:00
parent 30a1b115da
commit 41b41164d7

View file

@ -5,6 +5,7 @@
#include "audio/external.h" #include "audio/external.h"
#include "game/mario_misc.h" #include "game/mario_misc.h"
#include "djui.h" #include "djui.h"
#include "djui_hud_utils.h"
#include "pc/debuglog.h" #include "pc/debuglog.h"
#include "pc/lua/smlua_hooks.h" #include "pc/lua/smlua_hooks.h"
@ -36,6 +37,8 @@ static bool djui_chat_message_render(struct DjuiBase* base) {
djui_base_set_size(base, chatMessage->messageWidth, chatMessage->base.height.value); djui_base_set_size(base, chatMessage->messageWidth, chatMessage->base.height.value);
} }
djui_text_set_font(chatMessage->message, gDjuiFonts[configDjuiThemeFont == 0 ? FONT_NORMAL : FONT_ALIASED]);
djui_rect_render(base); djui_rect_render(base);
return true; return true;
} }