diff options
author | rubidium <rubidium@openttd.org> | 2008-08-13 06:05:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-13 06:05:01 +0000 |
commit | 97c184f8f8265cf59b24ab3081a032c7162afcb5 (patch) | |
tree | dd64aeafae6994a4ed4e2d23a71d62db7de1668f /src/signs_gui.cpp | |
parent | 08e7da71f520649359bbe40656a7c93e6ac2e1b0 (diff) | |
download | openttd-97c184f8f8265cf59b24ab3081a032c7162afcb5.tar.xz |
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
Diffstat (limited to 'src/signs_gui.cpp')
-rw-r--r-- | src/signs_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp index 50b436ee6..ec0da0679 100644 --- a/src/signs_gui.cpp +++ b/src/signs_gui.cpp @@ -188,7 +188,7 @@ enum QueryEditSignWidgets { struct SignWindow : QueryStringBaseWindow, SignList { SignID cur_sign; - SignWindow(const WindowDesc *desc, const Sign *si) : QueryStringBaseWindow(31, desc) + SignWindow(const WindowDesc *desc, const Sign *si) : QueryStringBaseWindow(MAX_LENGTH_SIGN_NAME_BYTES, desc) { SetBit(_no_scroll, SCROLL_EDIT); this->caption = STR_280B_EDIT_SIGN_TEXT; @@ -218,7 +218,7 @@ struct SignWindow : QueryStringBaseWindow, SignList { *last_of = '\0'; this->cur_sign = si->index; - InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, 255); + InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, MAX_LENGTH_SIGN_NAME_PIXELS); this->InvalidateWidget(QUERY_EDIT_SIGN_WIDGET_TEXT); } |