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:
parent
9a09165174
commit
91ef41dc13
|
@ -399,6 +399,8 @@ void textboxclass::translatecutscene(void)
|
|||
}
|
||||
while (newline != std::string::npos);
|
||||
|
||||
resize();
|
||||
|
||||
if (format->centertext)
|
||||
{
|
||||
centertext();
|
||||
|
|
Loading…
Reference in New Issue