diff options
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r-- | src/genworld_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp index 3ce473e97..3dfff97db 100644 --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -318,7 +318,7 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow { /* snprintf() always outputs trailing '\0', so whole buffer can be used */ snprintf(this->edit_str_buf, this->edit_str_size, "%u", _settings_newgame.game_creation.generation_seed); - InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size); + this->text.Initialize(this->edit_str_buf, this->edit_str_size); this->caption = STR_NULL; this->afilter = CS_NUMERAL; @@ -556,7 +556,7 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow { case WID_GL_RANDOM_BUTTON: // Random seed _settings_newgame.game_creation.generation_seed = InteractiveRandom(); snprintf(this->edit_str_buf, this->edit_str_size, "%u", _settings_newgame.game_creation.generation_seed); - UpdateTextBufferSize(&this->text); + this->text.UpdateSize(); this->SetDirty(); break; |