mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-05 02:39:41 +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:
parent
3de2c543a5
commit
84daa8fbc2
1 changed files with 2 additions and 0 deletions
|
@ -399,6 +399,8 @@ void textboxclass::translatecutscene(void)
|
|||
}
|
||||
while (newline != std::string::npos);
|
||||
|
||||
resize();
|
||||
|
||||
if (format->centertext)
|
||||
{
|
||||
centertext();
|
||||
|
|
Loading…
Reference in a new issue