summaryrefslogtreecommitdiff
path: root/src/newgrf_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/newgrf_gui.cpp
parent31eb896143ca5a38c0dc7355921393f357c5a383 (diff)
downloadopenttd-d58eee1e7945098f32e2d4419506ce1a81f3e4d6.tar.xz
(svn r24324) -Codechange: Turn functions dealing with Textbufs into member functions.
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 6df352324..a62003c8d 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -637,7 +637,7 @@ struct NewGRFWindow : public QueryStringBaseWindow, NewGRFScanCallback {
this->GetWidget<NWidgetStacked>(WID_NS_SHOW_APPLY)->SetDisplayedPlane(this->editable ? 0 : this->show_params ? 1 : SZSP_HORIZONTAL);
this->FinishInitNested(desc, WN_GAME_OPTIONS_NEWGRF_STATE);
- InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size);
+ this->text.Initialize(this->edit_str_buf, this->edit_str_size);
this->SetFocusedWidget(WID_NS_FILTER);
this->avails.SetListing(this->last_sorting);