summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-04-17 18:44:09 +0000
committerterkhen <terkhen@openttd.org>2011-04-17 18:44:09 +0000
commit5bb7a48cd23a61ed523d09a5884848aa94e47da6 (patch)
tree9969eda1b3d2ff0e92c76c7808cde599f3c668a8 /src/newgrf_gui.cpp
parent0bd44f60e95e8f54d749132520bd2f3044e2efb7 (diff)
downloadopenttd-5bb7a48cd23a61ed523d09a5884848aa94e47da6.tar.xz
(svn r22345) -Change: Remove pixel limiter for text buffers.
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index c0a2312e3..3443f6713 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -510,7 +510,6 @@ struct NewGRFWindow : public QueryStringBaseWindow {
typedef GUIList<const GRFConfig *> GUIGRFConfigList;
static const uint EDITBOX_MAX_SIZE = 50;
- static const uint EDITBOX_MAX_LENGTH = 300;
static Listing last_sorting; ///< Default sorting of #GUIGRFConfigList.
static Filtering last_filtering; ///< Default filtering of #GUIGRFConfigList.
@@ -556,7 +555,7 @@ struct NewGRFWindow : public QueryStringBaseWindow {
this->GetWidget<NWidgetStacked>(SNGRFS_SHOW_APPLY)->SetDisplayedPlane(this->editable ? 0 : SZSP_HORIZONTAL);
this->FinishInitNested(desc);
- InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, EDITBOX_MAX_LENGTH);
+ InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size);
this->SetFocusedWidget(SNGRFS_FILTER);
this->avails.SetListing(this->last_sorting);