diff options
author | frosch <frosch@openttd.org> | 2012-06-04 15:30:29 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-06-04 15:30:29 +0000 |
commit | d58eee1e7945098f32e2d4419506ce1a81f3e4d6 (patch) | |
tree | d5b61295290e921e8dff31d1bd73d149c84c113a /src/newgrf_gui.cpp | |
parent | 31eb896143ca5a38c0dc7355921393f357c5a383 (diff) | |
download | openttd-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.cpp | 2 |
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); |