From 84daa8fbc2d0960f26b2841c9ed8b8ce3d4b73a8 Mon Sep 17 00:00:00 2001 From: Misa Date: Sun, 21 Jan 2024 14:10:43 -0800 Subject: [PATCH] Call resize() before formatting text in cutscene This fixes a problem where it would incorrectly format the text because the width of the text box hadn't updated yet. This fixes a bug where the jukebox informational terminal would initially be created with too much padding in CJK languages, pushing the text box offscreen, even though switching languages while the text box is already open fixes it. --- desktop_version/src/Textbox.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop_version/src/Textbox.cpp b/desktop_version/src/Textbox.cpp index 1d1aef93..1d44b2d9 100644 --- a/desktop_version/src/Textbox.cpp +++ b/desktop_version/src/Textbox.cpp @@ -399,6 +399,8 @@ void textboxclass::translatecutscene(void) } while (newline != std::string::npos); + resize(); + if (format->centertext) { centertext();