fix two tiny issues with changing interface scale

This commit is contained in:
Kae 2024-05-25 13:12:50 +10:00
parent f3adb0b9d0
commit 74dabf2244
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
{
"paneLayout" : {
"panefeature" : {
"anchor" : "center"
},
"voiceLabel" : {
"type" : "label",
"position" : [119, 202],

View File

@ -195,7 +195,7 @@ void ChatBubbleManager::addChatActions(List<ChatAction> chatActions, bool silent
// bother me so bad if it weren't so fucking easy to do right.
// yea I agree
m_guiContext->setTextStyle(m_textStyle);
m_guiContext->setTextStyle(m_textStyle, m_zoom);
auto result = m_guiContext->determineTextSize(sayAction.text, m_textTemplate);
float textWidth = result.width() / m_zoom + m_textPadding[0];
float textHeight = result.height() / m_zoom + m_textPadding[1];