From d58eee1e7945098f32e2d4419506ce1a81f3e4d6 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 4 Jun 2012 15:30:29 +0000 Subject: (svn r24324) -Codechange: Turn functions dealing with Textbufs into member functions. --- src/genworld_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/genworld_gui.cpp') 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; -- cgit v1.2.3-54-g00ecf