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.
This commit is contained in:
Misa 2024-01-21 14:10:43 -08:00
parent 9a09165174
commit 91ef41dc13
1 changed files with 2 additions and 0 deletions

View File

@ -399,6 +399,8 @@ void textboxclass::translatecutscene(void)
}
while (newline != std::string::npos);
resize();
if (format->centertext)
{
centertext();