summaryrefslogtreecommitdiff
path: root/src/town_gui.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-04-17 18:42:17 +0000
committerterkhen <terkhen@openttd.org>2011-04-17 18:42:17 +0000
commit10caf391a1b6de33e1ac03236b2744adc9a2b2c5 (patch)
treee15e81245ef9d18ae217a50ad0b276692213a725 /src/town_gui.cpp
parente874f0e16e5ddaff3c5f40f419f31aedc7226897 (diff)
downloadopenttd-10caf391a1b6de33e1ac03236b2744adc9a2b2c5.tar.xz
(svn r22343) -Change: Remove pixel limiter for query strings.
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 76b89e2cc..e1e89648a 100644
--- a/src/town_gui.cpp
+++ b/src/town_gui.cpp
@@ -451,7 +451,7 @@ public:
case TVW_CHANGENAME: // rename
SetDParam(0, this->window_number);
- ShowQueryString(STR_TOWN_NAME, STR_TOWN_VIEW_RENAME_TOWN_BUTTON, MAX_LENGTH_TOWN_NAME_CHARS, MAX_LENGTH_TOWN_NAME_PIXELS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT | QSF_LEN_IN_CHARS);
+ ShowQueryString(STR_TOWN_NAME, STR_TOWN_VIEW_RENAME_TOWN_BUTTON, MAX_LENGTH_TOWN_NAME_CHARS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT | QSF_LEN_IN_CHARS);
break;
case TVW_EXPAND: { // expand town - only available on Scenario editor
@@ -1030,7 +1030,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, MAX_LENGTH_TOWN_NAME_PIXELS);
+ InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, this->max_chars, 0);
this->RandomTownName();
this->UpdateButtons(true);
}