summaryrefslogtreecommitdiff
path: root/src/town_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-06-04 15:30:29 +0000
committerfrosch <frosch@openttd.org>2012-06-04 15:30:29 +0000
commitd58eee1e7945098f32e2d4419506ce1a81f3e4d6 (patch)
treed5b61295290e921e8dff31d1bd73d149c84c113a /src/town_gui.cpp
parent31eb896143ca5a38c0dc7355921393f357c5a383 (diff)
downloadopenttd-d58eee1e7945098f32e2d4419506ce1a81f3e4d6.tar.xz
(svn r24324) -Codechange: Turn functions dealing with Textbufs into member functions.
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r--src/town_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp
index bd8d44087..6a6a32b3f 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -995,7 +995,7 @@ public:
params(_settings_game.game_creation.town_name)
{
this->InitNested(desc, window_number);
- InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, this->max_chars);
+ this->text.Initialize(this->edit_str_buf, this->edit_str_size, this->max_chars);
this->RandomTownName();
this->UpdateButtons(true);
}
@@ -1009,7 +1009,7 @@ public:
} else {
GetTownName(this->edit_str_buf, &this->params, this->townnameparts, &this->edit_str_buf[this->edit_str_size - 1]);
}
- UpdateTextBufferSize(&this->text);
+ this->text.UpdateSize();
UpdateOSKOriginalText(this, WID_TF_TOWN_NAME_EDITBOX);
this->SetWidgetDirty(WID_TF_TOWN_NAME_EDITBOX);