1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 09:39:43 +01:00

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 committed by Misa Elizabeth Kai
parent 3de2c543a5
commit 84daa8fbc2

View file

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